|
Post by mueh on May 20, 2020 13:45:01 GMT -5
George: VIEW/EDIT/BROWSE on Virtual BOX Network Drive File gets
SPFLite V(2.2.20137)
SPFLite has detected an internal loop
Last Interactions were:
K=ENTER
Module Back Trace:
12 | FILEWATCH
11 | INITAFILE
10 | STABADD
09 | LOADTHETEXT
08 | PCMDVIEW
07 | CALLTAB
06 | FMLCMDVIEW
05 | FMLCMDPROCESS
04 | POSTKEYBOARD
03 | MAINDKEYPROCESS
02 | SDOCURSOR
01 | SDOCURSOR
00 | REALPBMAIN
This has never worked . VIEW on Local Files under VBOX FM and thinbasic READ/WRITE have no Problem Maybe the loop is in THREAD FUNCTION sFileWatchThread(BYVAL tData AS LONG) AS LONG ' Monitor a directory, stop when caller tells us via Event Not an urgent request Thanks
|
|
|
Post by George on May 21, 2020 9:28:49 GMT -5
mueh: I doubt I'll ever get to this, being honest. I no longer have any VBOX systems set up, and frankly don't feel like doing so. The FileWatch stuff all uses normal Windows API calls (FindFirstChangeNotification) to establish the watch, it would seem the problem has to be in there. Figuring out just how anything can 'watch' a Network drive on a VM type system is kind of mind-boggling.
It could just as easily be a VBOX error in how it handles the interface mapping things into the Windows file system.
Either way, I doubt I'd ever get it figured out and fixed.
Sorry, George
|
|
|
Post by mueh on Jun 17, 2020 0:49:10 GMT -5
George: After i used 2.2.20167 with changes in Filewatch for Stefan the loop is solved . 2 new concerns with NETWORK Drives With Acess READ to Drive i get File OPEN failed . This is okay for EDIT but also occures for VIEW/BROWSE . Looks to me the OPEN is not done for INPUT in VIEW/BROWSE . This should also occure for Network Drive defined as NET SHARE with READ Acess . (no VBOX) Is there a way to get OPEN done for INPUT in _ObjIO.inc for VIEW ?
With Acess FULL file can be opened and SAVE'd . However if you close the Tab and try to reopen the file i get File already open in this tab but there is no TAB open . If Save is not done no problem . ( no problem with CREATE/REPLACE. files can be opened) Restart of SPFLite must be done . Is there anything you can do to solve the 2 Problems ? Thanks
|
|
|
Post by George on Jun 17, 2020 10:31:00 GMT -5
mueh: Edit, View and Browse all OPEN the file the same way using:
OPEN FilePath FOR BINARY ACCESS READ LOCK SHARED AS # FNum ' Open the File
There is no difference for files based on location (Local, or NAS), SPFLite makes no distinction.
I tried opening, closing, re-opening etc. in Edit and View on a NAS drive, had no problems.
George
|
|
|
Post by mueh on Jun 22, 2020 23:48:52 GMT -5
Hi George ! Thanks that you fixed "File already open in another tab" Problem after SAVE and reopen to VBOX Network Drive with access FULL . Don't know what you changed between 20171 and 20172 but this Problem is solved . For Open BINARY failing on VBOX Acess READ Drive you can't do very much since it fails also in Thinbasic . ( Also File_Load returns null string ) I use now an XFORM macro which opens file for INPUT . This of course works only for txt files and if non txt file copying file to temp file and opening it there as BINARY deblock/format it and Bulk Add_Line solves it . VBOX Network Drives for shared folders work now with SPFLite Thanks
One more suggestion . Could you allow FF in Opened files which gets No Files match search . Hope that suggested change is not causing other problems .
METHOD FMpCmdFF(pCmd AS STRING)
IF AFList(i).Flag = %FEntry OR AFList(i).Flag = %FFLEntry OR AFList(i).Flag = %FOpen THEN ' Existing File?
|
|
|
Post by George on Jun 23, 2020 9:26:45 GMT -5
mueh: I don't think FF in Opened Files will work. FF actually opens every file right in the File Manager tab in order to do the scan. But all these files are already "Open Elsewhere". I'll have a quick try, just to see, the FF Opens are handled a bit differently, maybe those changes will let this work.
George
[UPDATE]
OK, it works. In the next release
[\UPDATE]
|
|