Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms not releasing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00132131
Message ID:
00132279
Views:
14
>I have a modeless form with buttons that launch other forms (also modeless). Each child form has a custom property that links it to the parent form. When the parent is closed (by clicking the X) the Destroy code loops backwards through the forms collection array and checks each form for the property linking it to the parent. If found it executes _screen.forms[lnCount].Release().
>
>In development mode, everything works just fine. However, when running the .EXE, if more than one child form is launched, when I attempt to close the parent, the X greys out and nothing is released.
>I've determined that QueryUnload is being called but not the parent form's Destroy(). I've checked for object references that may not have been cleared but have found none. I'm at a loss to explain this. Any ideas?
>
>TIA

This may not pertain to you, but I just spent half a day with almost the same problem. Only thing different is our's had been work for a long time. I was starting a new project and ran into this problem. Did every thing could thing of, but the destroy would not fire. As a last ditch effert, I copied everything off of form and pasted on a new form. Problem disappeared. I had to do that with 2.6 on report 2 or 3 times and thought, what the heck. Still have no idea what could have caused it. Everything looked ok in the scx. Cleaned up project and all that good stuff.

HTH
Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform