![]() |
Program not closing?
Why is it that in debug/runtime after exiting my application I either have to hit stop in debug or use the task manager to actually stop the program from running?
The program uses sockets. Is it possible one is being left open or is there another general reason why this happens? Thanks |
Re: Program not closing?
Is your application creating any threads, if so it could be some thread is refusing to terminate cause it's still working. Check this ebook out, I think it explains the procedure involved closing a thraed
|
Re: Program not closing?
if you are closing the program in a window that is not the original window that was created when you hit run, then you have to press the stop button.
|
Re: Program not closing?
Quote:
Thanks Quote:
|
Re: Program not closing?
I'm still having the same issue. This is my deconstructor and my RemoveClient method.
:
|
Re: Program not closing?
To cleanup managed resources derive from IDisposable and carry out your routine in the implementation of the Dispose method. Destructors should be used to cleanup unmanaged resources and wont work as you probably expect for managed types.
|
| All times are GMT -5. The time now is 4:21 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC