Results 1 to 6 of 6

Thread: My Application remains open after closing all forms

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    My Application remains open after closing all forms

    Hello my application will remain open after closing every form. This is a recent issue in previous versions my application would close. I call dispose(true) on all form closing/closed events. (some forms require it on closing instead of close because of some custom made classes.) Any ideas as to what could be happening?

  2. #2
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: My Application remains open after closing all forms

    Are you declaring any background threads in your application that might not be released?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: My Application remains open after closing all forms

    I was in previous versions, but have commented that code out because it wasn't working properly/unneccesary.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Location
    Toledo, OH
    Posts
    785

    Re: My Application remains open after closing all forms

    It actually seems to run just fine on XP machines. The process closes after program exit. On Windows 7 however it will not.

  5. #5
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: My Application remains open after closing all forms

    Are you using any third party controls or libraries? Or calling unmanaged APIs?

  6. #6
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    519

    Re: My Application remains open after closing all forms

    To make sure that it exits you could run Application.Exit() in Form1_FormClosing
    Although I'd only recommend it as a last option.

    However, as said in the post above, if you are using any third party controls, you might need to unload these before closing your application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width