main logo
Subject: Re: Releasing a form - doesn't!
Author: Miquel Angel Guerrero
Posted: 2001/02/01 13:02:14
 
View Entire Thread
New Search


I've not solved the problem but now it's not my problem.
I'll explain myself.

I was working with CB 6.0, so I was using the class based menus, fine.
Now I've installed CB 6.1

1) if I choose to use the class based menus I have the same problem
2) if I choose to use the standard VFP menus my exe file works ok, I CAN CLOSE THE FORM

I understand that it's a very specific problem of mine but it was a very, very great problem for me.

Thank you James
Miquel Àngel Guerrero

<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>

Miquel Angel Guerrero
maguerrero /at/ kernelicsa .DOT com

 
©2001 Miquel Angel Guerrero
<-- Prior Message New Search Next Message -->