Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form won't unload in EXE
Message
From
12/10/1998 12:47:23
 
 
To
12/10/1998 12:39:20
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00145929
Message ID:
00145934
Views:
25
>Has anybody seen a problem where a form won't unload when running an EXEcutable version of the application, yet the form unloads fine when you're running in development mode? I know that a form woun't unload if any object references are hanging around, but if that were the case, it wouldn't unload in development mode either. I'm running VFP6 and my app has dozens of forms. Only a couple exhibit this behavior.
>
>TIA for any ideas. I'm really stumped.
>
>Regards,
>Patricia
Hi Patricia.

I actually ran into this one recently. I had the following line in a menu skip for option:

IF !FormIsObject OR (PEMSTATUS('_Screen.ActiveForm', lAllowDelete, 5) AND !Screen.ActiveForm.lAllowDelete)

There is a bug winvoled with the use of PEMSTATUS. IF it is not the first condition in an IF statement or you use 3 PEMSTATUS functions in one IF statement, it creates a ghost reference to the form. Because I had that line in my menu, I found that the first time I pulled up VFP, instatiated forms, and clicked on the x to shut down, none of the forms released. On subsequent tries, without re-sterting VFP, they released fine.

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform