Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method code disappearing
Message
From
30/07/1998 15:50:28
 
 
To
30/07/1998 15:16:10
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00122400
Message ID:
00122839
Views:
17
>>I'm trying to understand this as much as possible.
>>I have a form that uses a frmPages class. The frmPages class uses pgfBase class. If I run the form and just exit out of it, then pgfBase has all it's method code "invisible", but frmPages is just fine, and all other classes appear just fine also. It seems that all classes that were instantiated with the form would be messed up, but only the 1 is. That would seem to indicate that there is some pgf object still hanging around in memory, but not a frm object.
>>Any other observations that might help explain this?
>
>It's hard to say without seeing the code. Are any objects created with addobject or createobject? or are the all added via the designer at design time?
>What is the baseclass of FrmPages? I assume pgfBase is your base pageframe class.
>
>Is there a difference if you close the form with the upper right hand x versus closing it with a close button?
>
>Is there any special code in the destroy of your objects?

There are no objects created with addobject or createobject.
frmPages is a subclass of frmBase (my base form class) and has an instance of pgfBase (my base pageframe class) on it.
My pgfBase has a property nPageCount and PageCount=10. pgfBase.Init() does a RemoveObject of all pages over nPageCount (so I can set properties of all the pages in pgfBase in the designer and just remove the ones I don't use in the particular form).
My frmBase.Destroy() has a call to a prg file that closes all the files in the datasession (because it doesn't always close the datasession on releasing the form. Now that I think about it, that kind of supports your idea that something is still in memory. The datasession is not being removed possibly because there is still something in memory somewhere.

I have a similar (maybe) problem with 1 or 2 of my base classes. I cannot modify txtBase after running any forms (but I can modify a subclass of txtBase). There I get a message saying that I cannot modify a class that's being used. For some reason when the form disappears, the txt object doesn't, but it only affects txtBase not any of the subclasses. Maybe this is tied in with the problem with pgfBase.
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform