Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window menu icon does not release the form
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00211747
Message ID:
00211962
Views:
25
>>>Thisform.release in the click method of a button releases the form. The window menu icon does not (myForm.closable = .T.). What is the difference and what could be the reason?
>>>
>>>TIA
>>
>>I believe (myForm.closable = .T.) merely enables the close button on the form allowing you to click it.
>>
>>Is your form not closing when you pick the close "X" of the form?
>
>Sorry! My fault. In Help it says 'Window menu icon' but it really means this small little 'x' in the form title bar. When i click it, it changes the color to grey and nothing happens. The form is not released. The 'Cancel'-button on my form works. I am releasing some arrays in the release method of the form. One has an object refernce. I know from this mighty Gurus in UT that i have to get rid of object references. But they almost never tell you WHERE to do something. I also put this code into the unload method of the form (and tried some other foolish places). No change. So that leaves me with the question: what is behind this damned 'x' ?

Stefan,

It sounds like you have what's called a "dangling object reference". If an object is created in a form and not properly released, you'll see this type of behavior. For example, if you create a public object in the form's Init, the form won't release until that object is.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform