I am tracking down some memory leaks in my App by manually calling their
Destroy methods in the window closing process
(not pretty but it means I know which objects are responsible).
The problem is I hooked this up assuming someone (ie me) selected exit from
the menu,
when the close button in the window manager is hit it doesn't call the
method I created.
Fair enough, I then put in an EVT_CLOSE to call that same function, but its
calling it twice, and
subsequently crashes.
So what do I have to do to get it called once when the close button is
pressed?
----Gareth Walters
http://www.bigworldgames.com
http://www.microforte.com.au
What about using a flag semaphore? It's not uncommon, that the EVT_CLOSE
handler is called multiple times. You will have to deal with it...
>
> ----Gareth Walters
> http://www.bigworldgames.com
> http://www.microforte.com.au
Cheers,
Hans-Peter