AndrewMozley
Programmer
I have an application which runs on a user’s site. The starting point for the application is a program main.prg. This is bound with all the other forms, class defintions &c into – say - XYZApp.exe
The program main.prg initialises variables &c before creating a ribbon menu (a toolbar object) which controls the application.
main.prg does other initialisation and then issues the instruction ON SHUTDOWN DO SystemExit before calling DO EVENTS. The SystemExit function is coded lower down in main.prg.
The Toolbar menu then controls the application (maybe for hours !).
When the user decides to close the application (by clicking on a exit button on the menu bar), a CLEAR EVENTS instruction is issued; control passes back to main.prg which tidies a few things and RETURNs. The application then closes.
This generally works fine; there is also an error routine (ON ERROR DO ErrorRoutine) which is invoked when (in operation) any of my numerous bugs is encountered. This writes out to a log file Errorlog.txt details of variables, program line numbers &c
Occasionally I am seeing in the Errorlog.txt file on the user’s system that ‘File Systemexit does not exist’ The user has not complained, but I have not been able to discover why this is happening. I can certainly invoke the SystemExit() function on my development machine, by clicking on the x button in the top right of the window when the appplication is runnng.
(The only reference to SystemExit is from the ON SHUTDOWN statement)
Grateful for any suggestions as to why SystemExit is sometimes becoming unavailable.
Thanks. Andrew