|
-
Jan 30th, 2010, 01:26 PM
#1
Thread Starter
Addicted Member
[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
-
Jan 30th, 2010, 01:34 PM
#2
Fanatic Member
Re: Application doesn't "end", still running in taskmanager
If you want to close your application try using
 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
-
Jan 30th, 2010, 05:06 PM
#3
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|