Click here to Skip to main content
15,916,412 members
Home / Discussions / C#
   

C#

 
Questionc# Pin
akoito114-Jul-13 16:52
akoito114-Jul-13 16:52 
AnswerRe: c# Pin
OriginalGriff14-Jul-13 20:05
mveOriginalGriff14-Jul-13 20:05 
QuestionHow to dispose all resources after closing the application ? Pin
taibc13-Jul-13 23:26
taibc13-Jul-13 23:26 
AnswerRe: How to dispose all resources after closing the application ? Pin
Eddy Vluggen14-Jul-13 2:45
professionalEddy Vluggen14-Jul-13 2:45 
GeneralRe: How to dispose all resources after closing the application ? Pin
taibc14-Jul-13 15:04
taibc14-Jul-13 15:04 
GeneralRe: How to dispose all resources after closing the application ? PinPopular
NotPolitcallyCorrect14-Jul-13 15:30
NotPolitcallyCorrect14-Jul-13 15:30 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak14-Jul-13 15:34
mveDave Kreskowiak14-Jul-13 15:34 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:42
jschell15-Jul-13 8:42 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak15-Jul-13 10:03
mveDave Kreskowiak15-Jul-13 10:03 
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 
taibc wrote:
I found out a way to do that by use the statement:Process.GetCurrentProcess().Kill();

There's no book that recommend thus. It might "feel" as a fast way to exit the app, but as you noticed, it doesn't exit nicely.

You might wanna research the difference between foreground and background-threads. I'll bet one of them is still running.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:45
jschell15-Jul-13 8:45 
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 

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.