Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This can't be impossible to do
Message
From
30/03/2002 20:39:02
 
 
To
30/03/2002 17:53:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639169
Message ID:
00639230
Views:
23
Hi Cetin,

I inserted your code and ran my simple test program with the with the show(2) line commented and without.

In on shutdown proc, I iterate through forms collection, writing names of active forms to a file, run the release code, and iterate through forms collection again if exists. When all forms are modeless it works as expected, closing all froms and shuts down. When there is a modal form on top,
WIth SHOW(2) method commented out:
Started on shutdown procedure
Forms collection 
_screen.forms(1) = TEST2modal
_screen.forms(2) = Form1
End of Forms collection 

_screen.forms(1) = TEST2modal did not release
_screen.forms(2) = Form1 did not release
Finished shutdown procedure
Executing SHOW(2)to make nonmodal
Started on shutdown procedure
Forms collection 
_screen.forms(1) = TEST2modal
_screen.forms(2) = Form1
End of Forms collection 

_screen.forms(1) = Form1 did not release
Finished shutdown procedure
In both cases after the form release code "clear all" errors with Cannot clear current object in use. Same as before. Also this does not close messagebox or browse if on top.

I had already tried a variation of this with same result.

Any other ideas?

Thank you

Elmer
Previous
Reply
Map
View

Click here to load this message in the networking platform