Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cleanup problem
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Cleanup problem
Miscellaneous
Thread ID:
00644383
Message ID:
00644383
Views:
42
Hi to all again !

Here's the situation...

I have a base.vcx class library containing the following :

MyFormSet : inherits from FormSet
MyForm : inherits from Form
MyToolbar : inherits from Container
MyToolbarButton : inherits from Button
MyGrid : inherits from Grid
...

I have another application.vcx containing the following :

ADisplayForm : inherits from MyForm
AnotherDisplayForm : inherits fro MyForm
...

Both ADisplayForm and AnotherDisplayForm contain the following objects :

one instance of MyGrid
one instance of MyToolbar
many instances of MyToolbarButton in the instacne of MyToolbar

In my code, I create an instance of MyFormSet, then I add an instance of ADisplayForm to it.

In ADisplayForm, there's a toolbar button that add an instance of AnotherDisplayForm to the same FormSet instance (InstanceOfMyFormSet).

The FormSet is modal so my code is stopped at the line InstanceOfMyFormSet.show()

After that line, I make sure to pass through the Forms collection of InstanceOfMyFormSet to release every forms in it, then I release InstanceOfMyFormSet.

After the execution, in the VFP project manager, when I want to modify the class MyForm in base.vcx, I get an error saying I can't modify a class that is in use !

Any idea where is my mistake ?


Thanks again and sorry for the very long post !
********************************************

Benoit Grenier


encoder@silogic.ca (Job)
encoder@sympatico.ca (home)
Web site : www.silogic.ca
Next
Reply
Map
View

Click here to load this message in the networking platform