Destroying objects?!?!?!

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
 
M

Merlin

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
 
J

Jay Martinez

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top