Destroying objects?!?!?!

  • Thread starter Thread starter jaymtz78
  • Start date Start date
J

jaymtz78

Hi,

I have a huge windows application that I'm working on and I'm
completely baffled. Sometimes when I try to close the application, it
won't let me! I have an Exit button in my menu bar that has
Application.Exit and works all the time, but if I try to Alt + F4 or
click the 'X' in the Control Box...it won't let me exit the
application sometimes unless I test to see if the 'X' was clicked and
the use Application.Exit there too. I believe it has something to do
with me not destroying some objects, but there is way to much code for
me to go through! Is there a way that I can check to see which
objects have not been destroyed? PLEASE HELP!!! THIS IS SO
FRUSTRATING!!! THANKS IN ADVANCE!

jaymtz78
 
Hi,

Just a thought - it sounds like you might have multiple instance of some
forms still running hence ALT+F4 closes visible form, but doesn't close
app - whereas EXIT closes application as a whole.

Simply test is to place msgbox (me.text) prompt in each forms initialisation
and monitor messages that popup as you use your app.

Merlin
 
Hi,

When I get to work I will definitely try this! I'll follow up with you
to let you know what I find! Thank You!!!

jaymtz78
 
Back
Top