Click here to Skip to main content
15,894,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell16-Jul-13 8:10
jschell16-Jul-13 8:10 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak16-Jul-13 9:28
mveDave Kreskowiak16-Jul-13 9:28 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell17-Jul-13 8:37
jschell17-Jul-13 8:37 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak17-Jul-13 9:27
mveDave Kreskowiak17-Jul-13 9:27 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell18-Jul-13 9:17
jschell18-Jul-13 9:17 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak18-Jul-13 9:35
mveDave Kreskowiak18-Jul-13 9:35 
GeneralRe: How to dispose all resources after closing the application ? Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:45
jschell15-Jul-13 8:45 
taibc wrote:
Do you know, how to dispose all resources after I close my C# application ?


Wrong question.

Presumably your application only has one process - if not then you must have started the other processes so stopping them is also required.

But excluding that then if your application (process) is still running after you "close" it then that means you started a thread that continues to run. So the solution is that when you "close" it that you must terminate the threads that you started.

And the terminology is not apt since it isn't a matter of "resources" - it is an application/process which has not terminated. Once the process terminates all of the resources are freed regardless of the action your application took.
QuestionMessage Transfer from Pc to micro controller Pin
Member 402509113-Jul-13 21:41
Member 402509113-Jul-13 21:41 
AnswerRe: Message Transfer from Pc to micro controller Pin
David Knechtges15-Jul-13 3:03
David Knechtges15-Jul-13 3:03 
QuestionGC and memory Pin
Mehdi Gholam13-Jul-13 20:19
Mehdi Gholam13-Jul-13 20:19 
AnswerRe: GC and memory Pin
AlphaDeltaTheta13-Jul-13 21:16
AlphaDeltaTheta13-Jul-13 21:16 
AnswerRe: GC and memory Pin
Dave Kreskowiak14-Jul-13 3:37
mveDave Kreskowiak14-Jul-13 3:37 
GeneralRe: GC and memory Pin
Mehdi Gholam14-Jul-13 21:44
Mehdi Gholam14-Jul-13 21:44 
GeneralRe: GC and memory Pin
BillWoodruff25-Jul-13 1:20
professionalBillWoodruff25-Jul-13 1:20 
GeneralRe: GC and memory Pin
Dave Kreskowiak25-Jul-13 1:23
mveDave Kreskowiak25-Jul-13 1:23 
AnswerRe: GC and memory Pin
Bernhard Hiller14-Jul-13 21:35
Bernhard Hiller14-Jul-13 21:35 
AnswerRe: GC and memory Pin
Thomas Haller15-Jul-13 3:03
Thomas Haller15-Jul-13 3:03 
QuestionGUI and database synchronization Pin
leone13-Jul-13 9:28
leone13-Jul-13 9:28 
AnswerRe: GUI and database synchronization Pin
Eddy Vluggen14-Jul-13 2:53
professionalEddy Vluggen14-Jul-13 2:53 
GeneralRe: GUI and database synchronization Pin
leone14-Jul-13 22:06
leone14-Jul-13 22:06 
GeneralRe: GUI and database synchronization Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: GUI and database synchronization Pin
Nicolás Marzoni16-Jul-13 9:44
Nicolás Marzoni16-Jul-13 9:44 
QuestionC# Using random Function Pin
Pintu Saw13-Jul-13 4:39
Pintu Saw13-Jul-13 4:39 
AnswerRe: C# Using random Function Pin
Dave Kreskowiak13-Jul-13 4:53
mveDave Kreskowiak13-Jul-13 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.