application not closed properly

  • Thread starter Thread starter wanwan
  • Start date Start date
W

wanwan

I have a few programs written that can't be closed completely.

I click on the 'x' and the form closes, but the program still shows
in task manager. I tried using Application.exit() in form_closing
event and it didn't work.

any suggestion please
 
Are they your apps in Process list or do you create MS Office objects too
that aren't closing?

Are you using threading?
 
If there are threads running you have to close them all properly.

Maybe you have a socket open?

Make sure you hae something like

Socket.close()
Thread.abort()

before you close your app.

M.
 
If there are threads running you have to close them all properly.

Maybe you have a socket open?

Make sure you hae something like

Socket.close()
Thread.abort()

before you close your app.

M.

ya, I forgot to stop a thread. Thanks.
 

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

Back
Top