One more thing, I've traced the events, with WAIT WIND because I need to trace them in the exe file. 1) If I try to close the form with a button with "Thisform.Release()" at click() event, first calls the myform.Release() method and then myform.Destroy(), so the form get closed. 2) But if I try it FROM AN EXE FILE, I cannot see the WAIT WIND at myform.Destroy(). 3) And If I close the app. ("File-Exit"), I see that first it calls myform.release() and second myform.destroy().
I'm "newbie" (is this the word?) at CB, but if I cannot get this problem solved I thing that's all I'll will be. :-((
TIA Miquel Àngel Guerrero
<i><font color="#663300">Thank you for your answer:
1) I haven't modified the Release() code 2) using this controls the problem is the same, if I push the "x" control, it gets disabled but don't close the form
I've tried to install VFP in another computer, I've installed CB and built a new Test project with a simple form. It has a button with "Thisform.release()" in this click method. If I run it inside VFP, executing "DO MAIN", it works all OK, but IF I BUILD AN EXE FILE, I'm unable to close the forms. ??
I forgot the last time to tell you that I'm using VFP 5.0 with SP3, not VPF 6. Perhaps this is the problem?
Thank you for reading me.
<i><font color="#663300"><i><font color="#663300"> Greetings Miquel,
I'm about to make two silly suggestions, but that if you knew me, it wouldn't surprise you.
1) If you have code in yourForm.Release(), have you included doDefault()? 2) Close the form using controls in the upper corners of the form.
When you use the "x" or window control popup that are in the upper corners a form is closed via QueryUnload() rather than Release(). This is my understanding:
user wants to close --> QueryUnload() -->| -OR-..................................................-----|--> Destroy() program command to close --> Release() -->|
Both Release and QU are places to prepare for the Destroy event/method. Trace the events as you trigger the QU then return to Release.
HTH.</font></i>
</font></i>
Miquel Angel Guerrero maguerrero At kernelicsa DO.T com
©2001 Miquel Angel Guerrero |