>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only