Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form exiting unexpectedly
Message
 
 
To
29/03/2004 18:04:52
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00890623
Message ID:
00890652
Views:
17
Sony,

Have you stepped through the code in the debugger to see what causes the form to destruct? It's quite possible for code in myClass to cause the form to be released. CLEAR ALL is one candidate to look for.

>I have a form with a grid and a command button. the button runs some code based on the selected item in the grid. The code is similar to this
>
>loProcess = Newobject("myClass", "mClassLib.Prg")
>loProcess.Process()
>loProcess=.NULL.
>CLEAR CLASS myClass
>RETURN
>
>My problem is, the form gets released , even without the RELEASE command. There is something in the class that causes this behaviour. There is no reference to BINDEVENT or Thisform in the class at all. If anyone can think of a immediate cause, that would be of great help.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform