Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
QuestionhttpWebRequest issue Pin
pelgrim_198327-Feb-08 2:34
pelgrim_198327-Feb-08 2:34 
GeneralByte[], alternate null chars Pin
Malcolm Smart27-Feb-08 2:30
Malcolm Smart27-Feb-08 2:30 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 2:55
Bekjong27-Feb-08 2:55 
GeneralRe: Byte[], alternate null chars Pin
Malcolm Smart27-Feb-08 3:01
Malcolm Smart27-Feb-08 3:01 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 3:14
Bekjong27-Feb-08 3:14 
GeneralRe: Byte[], alternate null chars Pin
Malcolm Smart27-Feb-08 3:37
Malcolm Smart27-Feb-08 3:37 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 3:47
Bekjong27-Feb-08 3:47 
GeneralAre child threads of an object destroyed when an object is destroyed. Pin
Sunset Towers27-Feb-08 2:26
Sunset Towers27-Feb-08 2:26 
I have an object that does work in the background and fires events as certain things happen. If this object is destroyed will the thread be automatically terminated.

I'm guessing that if the thread is not terminated then I need to implement the IDisposable interface and set Dispose() method. I would rather not do this, but I have in the past had code that kept the debugger running because the child thread was still in operation. At the time however I was using

new Thread(new ThreadStart(myThread)).Start()

so I assumed that, while the thread was started from the object, it was not contained within the object's running environment and it was not able to be GCed with the rest of the object.

I implemented a stopping routine when the program was being terminated. However, I am unable to do the same this time.

The thread that is being created is being created as an object

private Thread myThread

so I'm thinking that the thread would be terminated upon the object being destroyed. I certainly hope this is the case.
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Roger Alsing27-Feb-08 2:35
Roger Alsing27-Feb-08 2:35 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Not Active27-Feb-08 2:39
mentorNot Active27-Feb-08 2:39 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Bekjong27-Feb-08 2:41
Bekjong27-Feb-08 2:41 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
pbraun27-Feb-08 9:09
pbraun27-Feb-08 9:09 
GeneralSpeech comparison Pin
Yoyosch27-Feb-08 2:24
Yoyosch27-Feb-08 2:24 
GeneralRe: Speech comparison Pin
mav.northwind27-Feb-08 3:39
mav.northwind27-Feb-08 3:39 
GeneralRe: Speech comparison Pin
Yoyosch27-Feb-08 3:49
Yoyosch27-Feb-08 3:49 
GeneralRe: Speech comparison Pin
Justin Perez27-Feb-08 4:02
Justin Perez27-Feb-08 4:02 
QuestionHow to write properties in design time Pin
El'Cachubrey27-Feb-08 2:15
El'Cachubrey27-Feb-08 2:15 
AnswerRe: How to write properties in design time Pin
Xmen Real 27-Feb-08 2:33
professional Xmen Real 27-Feb-08 2:33 
Generalstore files in a database Pin
Member 366830827-Feb-08 2:13
Member 366830827-Feb-08 2:13 
GeneralRe: store files in a database Pin
Aaron VanWieren27-Feb-08 3:35
Aaron VanWieren27-Feb-08 3:35 
GeneralRe: store files in a database Pin
Member 36683081-Mar-08 23:12
Member 36683081-Mar-08 23:12 
GeneralIO.Directory.GetFiles() Problem.. Pin
ptr2void27-Feb-08 0:55
ptr2void27-Feb-08 0:55 
GeneralRe: IO.Directory.GetFiles() Problem.. Pin
Giorgi Dalakishvili27-Feb-08 1:02
mentorGiorgi Dalakishvili27-Feb-08 1:02 
Questionhow to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
puneet.priyadarshi27-Feb-08 0:48
puneet.priyadarshi27-Feb-08 0:48 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Giorgi Dalakishvili27-Feb-08 0:57
mentorGiorgi Dalakishvili27-Feb-08 0:57 

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.