Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exe will not close
Message
From
03/04/2020 01:14:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01673932
Message ID:
01673944
Views:
45
>>>>Hi,
>>>>I have this little exe built in VFP9SP2. One form, no menu, just some information for the user.
>>>>The .pjx works fine. I can start and close. No problem
>>>Are you using ON SHUTDOWN ?? If so are you sure you issue ON SHUTDOWN before exiting your app ?
>>>
>>>Walter,
>>>
>>>>The exe however will not close, that is. The window can be closed but a dos-like VFP screen appears with a minimal menu and apparently it is running in a loop. The menu flickers, untill I do a selection. I cannot close this window but with Ctrl-Alt-Delete. The exe is running in the taskmanager and can be removed from there,
>>>>For w.i.w. the config.fpw has following code:
>>>>_SCREEN = OFF
>>>>RESOURCE = OFF
>>>>_SCREEN.CLOSABLE = .T.
>>>>
>>>>I was avised to change _Screen to Screen = OFF however that does not help.
>>>>
>>>>Anybody with an idea where I should change the bug in my program so that the exe will close?
>>>>
>>>>Regards,
>>>>
>>>>Koen
>>Walter,
>>
>>No I do not issu a SHOTDOWN, I have nothing else but Clear Events now on 5 occacions. Where do you propose to put the ON SHOTDOWN in a Form methods or in my start1.prg?
>>
>>Regards,
>>Koen
>
>Hi Koen,
>
>I have
>
>on shutdown clear events
>
>
>in my Main.prg, before Read Events.

Dimitry,
Thanks a lot. That did it. In my default SetSettings.prg I do have this as well, I donot know how and why it was deleted from that file. Now put it back and everything works as it should. Thanks for pointing me in the correct direction.
Regards,
Koen
>
>HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform