<i><font color="#663300"><i><font color="#663300">I am finally at the point of rolling out my first CodeBook app. Unfortunately, I have run across a problem that I have been tangling with for a week now. I build an exe, run it and the forms will not close.</font></i>
In my experience, forms will not close if you have a dangling reference to it or a contained object of the form. Do you have any place where you are storing a reference to the form or anything on it anywhere?
<i><font color="#663300">I click exit, and I get the following error message: Microsoft Visual FoxPro Fatal Error: Exception Code = C0000005 Called from - setup line 147 {h:ajdappscommonprogssetup.prg} Called from - main line 11 {h:ajdapps ccapbudgetprogsmain.prg}
I click OK and the session ends.</font></i>
Dangling references typically cause C0...5 errors. I'd check that possibility out. </font></i>
The form is a wizard form which makes use of a few PUBLIC arrays and variables to control the movement from page to page on a pageframe. I make full use of the Activate event (which I am rethinking, after reading a thread where you commented on using a controls UIEnable evenyt instead). But I am unaware of where something would be referencing the form, except from a parent class, since this is subclassed from the i-layer.
Could you perhaps give me an example of a dangling reference situation? Could you perhaps suggest a methodology for tracking down a dangling reference if one is suspected to exist? I have never actaually gone searching for one before.
Devman mdevlin (at) ajdebruin D.O.T com
©2002 Mike Devlin |