Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms not releasing themselves or their datasessions
Message
From
18/06/1997 13:55:47
 
 
To
18/06/1997 12:37:13
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00036724
Message ID:
00036849
Views:
62
>>I am experiencing some extremely frustrating problems in VFP 3.0b. Randomly, forms that I have created within an application will not close. I have traced the code numerous times and the form is released (using RELEASE THISFORM), however, it remains on the screen and the application just stops handling the rest of the events. What makes the problem so frustrating is that I can cancel out of the unclosed forms, open the project, rebuild the .app, not touching any code whatsoever, and the form works fine. Each of the forms is an .SCX file based on my custom form classes, run using DO FORM .
>>
>>If anyone knows any cure or has an suggestions for either of these problems PLEASE let me know. TIA.
>
>Hello Jon,
>
>I'm using Vfp 5.0a here and I'm also facing this problem. What is worse is that it really seems to be randomic (I have never seen such a problem before).
>Repeating exactly the same steps sometimes it happens sometimes not, and it makes no difference here building again the project as you've mentioned. The only difference is that here I have only seen it happening with forms instantiated with CREATEOBJECT and not with DO FORM.
>
>I know that array properties not set to .F. and external references to the Form object (or to one of its controls) not released before closing the Form cause the same problem (the Form doesn't close). BTW, it would be a great debug improvement in those situations to have a way of knowing what exactly is obstructing the form's closing process.
>
>What makes me very surprised is to be only now hearing for the first time about this problem. Are we the only chosen ones?
>
>Renato

You can easily get into troubles using some innatural code like:
oMyobject=Thisform.cmbCombo1
oMyobject.value="qq"
because now, you should (sometimes) firstly release oMyobject.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform