The Setup: THE_PROFILE_FILE is C:\THE\XEDITPROF2LB.the -> Mouse-click 2LB on a file name in a Windows 7 filelist, under folder name THE
The Action: This activates XEDITPROF2LB.the, which gets filename = fpath.1()||filename.1(), sets several ENVIRONMENT variables to pass along, THEN it does a "COMMAND QUIT". THEN it does an "Address Command Start" on THE.exe,with XEDITPROFILE.the as the Profile file, and the filename of the file to be edited, and -k4 as the Soft Label Key format.
The Sting: Half the time THE succesfully starts the session, I am able to complete the editing, and all is well. The other half of the time, THE crashes and Windows 7 gives me the bogus small window saying it is looking into the matter. I simply try again, and keep trying until the edit session opens.
The Payoff: I have run this the other way, where I reversed the order of "QUIT" and "Start". I did not work. Same results. It smells like a timing issue to me, whereby there is a race to some internal resource which does not get locked and is double-used...thereby causing the crash.