Hi George!
Sorry it took some time to figure that out .
I don't know what you changed with "smal adjustment" in 23290 .
If it should be a fix for preventing FM display when switching to existing Instance it isn't working .
Noticed that _OPENLIST.TXT is now in HOMEFOLDER and _INSTANCE.BAT uses windows timout.exe with 1 sec delay .
Following Problems existed also in 23288 and now in 23290 .
When i do
INST U -O Openlist KEEP in Instance U to add additional files the passed files list is truncated at about 309 bytes .
I think you added code to acccept MRFLIST ( more then one file without =X ) when instance is already started but
it seems that following code truncates it due to zBuffer to smal .
in InitRoutines.inc
FUNCTION InitSeeUnique(WCtr AS LONG) AS LONG
fWnd = GetWindowHandle(Title, WCtr) ' Go see if we're running somewhere
STATIC zBuffer AS STRING * %MAX_PATH + 50
zBuffer = gENV.InitString ' Get Init String
DataToSend.lpData = VARPTR(zBuffer) ' Build the message
DataToSend.cbdata = LEN(zBuffer) + 1 '
DataToSend.dwData = 1 '
SendMessage fWnd, %WM_COPYDATA, ghWnd, VARPTR(DataToSend) ' Send data to other instance
Passing the -O File name looks more complicated .
My MRFLIST's are about 29k in size . Filenames 80 bytes and in MEDIT more than 400 files can be opened.
Suggestion : Use 64Kb or length of gENV.InitString for size of zBuffer .
For the fix for "frozen Tab" which switches now to FM i also have a suggestion .
I found that a SWAP PRIOR command displays the last active TAB .
I think instead of switching to TAB 1 (FM) you should use code from SWAP PRIOR which is
CASE %KWPRIOR '
i = IIF(gTabStackNum > 1, gTabStack(2), 0) ' Get previous page number
IF i = 0 OR i > gTabsNum THEN i = 1 ' Don't go to non-existant tab
I hope we can get this switch to last used TAB working .
I would like to see a Macro Function Get_CFG_Path$
***********IMPORTANT *************+
ignore the following updates . After defining the keys without Allow Key combinations to repeat it seems that i can't
reproduce the following described problems . So just look at above issues .
***********IMPORTANT *************
I also saw a more cosmetic intermitent problem when switching between Instances .
FM f.e Recent List has a display with no Drive in PATH and screen sometimes 'frozen' . SWAP PRIOR key is required to come out of this screen .
The Folders and Files are from C: or D: drive depending what was the drive in FM Filepath .
I think a \ got put into File / Path in FilePath Tab when switching from a NON FM TAB to other instance . The old instance is in FM Tab when you view it via ICON .
I think the code you added for CAN / END support with 23283 switching to FM is causing the problem .
If no CAN / END on INST cmd is specified i see no need to swap to FM .
This is just a guess as i don't have the Source of the new changes .
If we correct the fix for "frozen Tab" to show last used TAB we might not see that problem .
Have assigned following keys to test it
KP+ SWAP PRIOR
Shft-KP+ INST U KEEP
Ctrl-KP+ INST DEFAULT KEEP
I think we are coming now to an end on problems .
Thanks for your patience .