main logo
Subject: Re: ibizobjform not release
Author: Juan Carlos Carta
Posted: 2001/02/27 17:35:46
 
View Entire Thread
New Search


<i><font color="#663300"><i><font color="#663300">Altough return .T. the close button of form is dimmed and form not release. The problem is after query unload method on destroy or unload method. Howewer i dont change this methods on cbizobjform or ibizobjform. I use asecurecontrols in the forms.</font></i>

I think Pamela's on the right track - this behavior is almost always caused by a property set up to reference another object. Do you have any custom properties on your form, or on any of its controls, which hold a reference to another object? If so, in the Destroy() method of that class, you have to add:

<code>This.oProperty = .NULL.</code>

to make sure that Fox properly releases things. Otherwise, Fox isn't too good about cleaning up such references, and will simply leave the form there is a semi-dead state.
</font></i>

Hi Ed,

I change all parent class of controls on my forms to icontrols.vcx, itextbox,icombobox etc. The Problem is not solved, Only one change was did to codebook class: the Ccombobox class have in the init method one addendum, I create rowsource sql sentence based in one custom property ccombobox condicion="Sometext" this property reference text to filter the sql cursor, althoug all variables use are locals. I probe This.condicion=.null. Closing the cusor generated for the sql. The problem continues. Some things I forgotten to say: Many times i can exit the form using the exit option of the mainmenu, But sometimes I get c00005 error when I try to release the form on this manner. I cannot installed none service pack. May Be this the problem?

Another Thing: Many Times if i instancied another form, The problem is not present on the new form. But i can't release the first instantiated,
In other cases the problem is presente in each one form that i instance.


Greetings.
Juan Carlos Carta
jccarta
 
©2001 Juan Carlos Carta
<-- Prior Message New Search Next Message -->