octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55161] Cannot open multiple files from Google


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #55161] Cannot open multiple files from Google Drive File Stream in the editor
Date: Tue, 15 Oct 2019 00:42:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36

Follow-up Comment #17, bug #55161 (project octave):

To investigate the problem, I created file #47671 (main.cc) to not always have
to compile mxe-octave again.  The problem is, that for the "google file
stream" the MS Windows "fileapi.h" function "GetFileInformationByHandle"
cannot extract the fields


hfi1.nFileIndexHigh  == 0
hfi1.nFileIndexLow   == 0
 

That is


$ gcc main.cc
$ ./a.exe
    * same_file (1): f1 = C:\Octave\myfile.m *
    *                f2 = C:\Octave\myOtherFile.m *
    * same_file (2): hfile1 is valid *
    * same_file (3): hfile2 is valid *
    * same_file (X):  1646825395 1646825395 1900544 1572864 268690 268700 *
    * same_file (4): retval = 0 *
 


$ gcc main.cc
$ ./a.exe
    * same_file (1): f1 = H:\My Drive\myfile.m *
    *                f2 = H:\My Drive\myOtherFile.m *
    * same_file (2): hfile1 is valid *
    * same_file (3): hfile2 is valid *
    * same_file (X):  428019990 428019990 0 0 0 0 *
    * same_file (4): retval = 1 *
    * same_file (5): VolSerialNo equal: 1 *
    * same_file (6): nFIndexHigh equal: 1 *
    * same_file (7): nFIndexLow  equal: 1 *
 

There is another function "GetFileInformationByHandleEx", notice the "Ex"
suffix.

https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getfileinformationbyhandleex

Is there any experienced MS Windows developer to enlighten us? ^^

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55161>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]