Results 1 to 3 of 3

Thread: [RESOLVED] Application doesn't "end", still running in taskmanager

  1. #1

    Thread Starter
    Addicted Member riechan's Avatar
    Join Date
    Feb 2008
    Location
    Japan
    Posts
    254

    Resolved [RESOLVED] Application doesn't "end", still running in taskmanager

    Hi guys. Why is it that when I close the application that I've made, it is still seen as running in the background in task manager? I open my forms using the .show() method, and when I need to close them programmatically, I use .dispose().
    ====================
    ほんとにどもありがとう!

    Rie Ishida

  2. #2
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    Re: Application doesn't "end", still running in taskmanager

    If you want to close your application try using

    Code:
    Application.Exit()
    Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.

    "Persistence is the magic of success." Paramahansa Yogananda

  3. #3
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    Re: Application doesn't "end", still running in taskmanager

    Unloading a form doesn't stop the code running in the background. For example if your application is running in a loop then unloading will take the form off the display but the loop keeps running and the app will stay in task manager until the loop exits.

    So, make sure you have no loops like that running. Make sure that no timer will trigger while the form is unloading - best is to make sure all timers are stopped before closing the app just in case.

    Most of my experience is from VB6 - i'm quite new to net but your problem sounds exactly the same as what we'd have in VB6 so maybe .net behaves the same way.

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