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 !