Click here to Skip to main content
15,887,364 members
Home / Discussions / C#
   

C#

 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 7:37
SledgeHammer019-Nov-14 7:37 
GeneralRe: Waiting for thread to exit? Pin
PIEBALDconsult9-Nov-14 7:54
mvePIEBALDconsult9-Nov-14 7:54 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 7:57
SledgeHammer019-Nov-14 7:57 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 8:00
SledgeHammer019-Nov-14 8:00 
GeneralRe: Waiting for thread to exit? Pin
PIEBALDconsult9-Nov-14 8:13
mvePIEBALDconsult9-Nov-14 8:13 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 8:49
SledgeHammer019-Nov-14 8:49 
GeneralRe: Waiting for thread to exit? Pin
PIEBALDconsult9-Nov-14 8:55
mvePIEBALDconsult9-Nov-14 8:55 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 9:17
SledgeHammer019-Nov-14 9:17 
You mean as in System.Threading.Thread and Tasks? Well, personally, I'm conscientious about cleaning up everything I create, but threads and tasks clean themselves up when they exit. I was more referring to stuff that would cause a memory leak or OS instability if you didn't free it up like say COM objects or unmanaged bitmaps, that sort of thing.

But to your original point, my worker thread is specifically a foreground thread because I WANT it to "hang" / keep the process alive until its done.

I guess what you're saying is that technically this would qualify for my earlier requirement of only forcing the guy to call Dispose() on the container if something needs to be cleaned up, right? Smile | :)

Yeah, I guess... except in my head, I'm differentiating between stock services that are part of my API and magically registered automatically vs. any services the developer registers Smile | :) .

Maybe I shouldn't make that differentiation, but in my company, its perfectly acceptable to blame your co-worker for their screw up in using your framework, better then you getting crap for your "buggy framework" Smile | :)

So that's really why I'm being so picky in trying to handle as much as I can in my API. So any bugs I can just throw back at the developer that he didn't use my framework right. That's how my company works unfortunately.
GeneralRe: Waiting for thread to exit? Pin
Eddy Vluggen10-Nov-14 8:34
professionalEddy Vluggen10-Nov-14 8:34 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer0110-Nov-14 9:27
SledgeHammer0110-Nov-14 9:27 
GeneralRe: Waiting for thread to exit? Pin
Eddy Vluggen11-Nov-14 0:31
professionalEddy Vluggen11-Nov-14 0:31 
AnswerRe: Waiting for thread to exit? Pin
Garth J Lancaster8-Nov-14 17:31
professionalGarth J Lancaster8-Nov-14 17:31 
QuestionAny library to decompress XZ files? Pin
DonRolando8-Nov-14 9:56
DonRolando8-Nov-14 9:56 
AnswerRe: Any library to decompress XZ files? Pin
Garth J Lancaster8-Nov-14 12:11
professionalGarth J Lancaster8-Nov-14 12:11 
QuestionSystem.Web.HttpContext cannot be serialized because it does not have a parameterless constructor. Pin
ASPnoob8-Nov-14 4:33
ASPnoob8-Nov-14 4:33 
AnswerRe: System.Web.HttpContext cannot be serialized because it does not have a parameterless constructor. Pin
Kornfeld Eliyahu Peter8-Nov-14 9:19
professionalKornfeld Eliyahu Peter8-Nov-14 9:19 
QuestionBlocking Collection Issue Pin
SledgeHammer017-Nov-14 8:24
SledgeHammer017-Nov-14 8:24 
AnswerRe: Blocking Collection Issue Pin
Eddy Vluggen7-Nov-14 9:40
professionalEddy Vluggen7-Nov-14 9:40 
AnswerRe: Blocking Collection Issue Pin
jschell7-Nov-14 12:39
jschell7-Nov-14 12:39 
GeneralRe: Blocking Collection Issue Pin
SledgeHammer017-Nov-14 13:07
SledgeHammer017-Nov-14 13:07 
QuestionHow to calculate matrix determinant? n*n Pin
cicill7-Nov-14 6:18
cicill7-Nov-14 6:18 
AnswerRe: How to calculate matrix determinant? n*n Pin
OriginalGriff7-Nov-14 6:29
mveOriginalGriff7-Nov-14 6:29 
QuestionRe: How to calculate matrix determinant? n*n Pin
ZurdoDev7-Nov-14 10:11
professionalZurdoDev7-Nov-14 10:11 
Question[Howto] C# and DVR media port programming Pin
Benjie Fallar III7-Nov-14 5:26
Benjie Fallar III7-Nov-14 5:26 
GeneralRe: [Howto] C# and DVR media port programming Pin
Eddy Vluggen7-Nov-14 5:42
professionalEddy Vluggen7-Nov-14 5:42 

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.