Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form not releasing on Close
Message
 
 
To
18/11/2003 09:55:27
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00849922
Message ID:
00851016
Views:
20
Amanda,

>I recompiled your utility in VFP 8, but I am not entirely sure I am using it correctly. I either cannot get it to find anything or it errors out.

I need to rework some of that code, because more of the baseclass properties falsely expose themselves as arrays.

>I made a copy of my form class and started manually removing objects and commenting out code to see if I could narrow down the culprit. After completely removing all elements from page 2 and commenting out all code that relates to page 2, the form still would not close. This seems fishy, especially since it worked during the development with the elements on page1. I am not doing anything very complicated, I don't think. The only thing out of the ordinary is that I have 2 business objects which change primary bizobj on different tabs. However I put a suspend in the form.release and watched some in the debugger to check these. After the cleanup the type goes from 'O' to Null, which I am assuming means that they are being destroyed correctly. The same is also true of the dbi-tech OCXs. With my limited knowledge I am running out of ideas.

Does the bizobj hold any object references to anything in the form? Are you using WITH and/or FOR EACH on any of the OCX's collections? Sometimes that can leave internal object refs and if that's what's causing it you need to find an alternate way to do the code.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform