Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Event" is null while invoking custom event (Solved) Pin
Arindam Tewary1-Mar-10 8:29
professionalArindam Tewary1-Mar-10 8:29 
GeneralRe: "Event" is null while invoking custom event (Solved) Pin
Saksida Bojan1-Mar-10 8:47
Saksida Bojan1-Mar-10 8:47 
GeneralRe: "Event" is null while invoking custom event (Solved) Pin
Luc Pattyn1-Mar-10 9:32
sitebuilderLuc Pattyn1-Mar-10 9:32 
GeneralRe: "Event" is null while invoking custom event (Solved) Pin
Saksida Bojan1-Mar-10 9:51
Saksida Bojan1-Mar-10 9:51 
AnswerRe: "Event" is null while invoking custom event Pin
Luc Pattyn1-Mar-10 7:49
sitebuilderLuc Pattyn1-Mar-10 7:49 
GeneralRe: "Event" is null while invoking custom event Pin
Arindam Tewary1-Mar-10 7:57
professionalArindam Tewary1-Mar-10 7:57 
GeneralRe: "Event" is null while invoking custom event Pin
DaveyM691-Mar-10 10:32
professionalDaveyM691-Mar-10 10:32 
Questionsafely end a thread Pin
Yustme1-Mar-10 6:54
Yustme1-Mar-10 6:54 
Hi,

I'm trying to end 3 threads in a save way. I can get 2 threads to stop, but the last one doesn't seem to abort.

My try:


// Volatile is used as hint to the compiler that this data
// member will be accessed by multiple threads.
private volatile bool stopRequested = false;

this.stopRequested = true; 

// Use the Join method to block the current thread 
// until the object's thread terminates.
this.thdPageContent1.Join();
			
this.thdPageContent2.Join();
			
this.thdFileComparer.Join();



After the thdFileComparer thread, i got a messagebox that 'tells' me the threads are stopped:

MessageBox.Show("Threads stopped successfully");

Any idea what I might be doing wrong?

Thanks in advance!
AnswerRe: safely end a thread Pin
Paulo Zemek1-Mar-10 7:07
mvaPaulo Zemek1-Mar-10 7:07 
GeneralRe: safely end a thread Pin
Yustme1-Mar-10 11:45
Yustme1-Mar-10 11:45 
GeneralRe: safely end a thread Pin
Paulo Zemek1-Mar-10 13:53
mvaPaulo Zemek1-Mar-10 13:53 
GeneralRe: safely end a thread Pin
Yustme1-Mar-10 22:31
Yustme1-Mar-10 22:31 
GeneralRe: safely end a thread Pin
Paulo Zemek2-Mar-10 6:17
mvaPaulo Zemek2-Mar-10 6:17 
GeneralRe: safely end a thread Pin
Yustme2-Mar-10 6:19
Yustme2-Mar-10 6:19 
AnswerRe: safely end a thread Pin
Luc Pattyn1-Mar-10 7:13
sitebuilderLuc Pattyn1-Mar-10 7:13 
GeneralRe: safely end a thread Pin
Yustme1-Mar-10 22:34
Yustme1-Mar-10 22:34 
QuestionHELP on .NET Remoting Pin
jekkup11-Mar-10 6:03
jekkup11-Mar-10 6:03 
AnswerRe: HELP on .NET Remoting Pin
Abhinav S1-Mar-10 6:23
Abhinav S1-Mar-10 6:23 
QuestionClick a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:36
Serenity11-Mar-10 5:36 
AnswerRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 5:41
Saksida Bojan1-Mar-10 5:41 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:55
Serenity11-Mar-10 5:55 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 6:04
Saksida Bojan1-Mar-10 6:04 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 6:27
Serenity11-Mar-10 6:27 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 7:06
Saksida Bojan1-Mar-10 7:06 
QuestionPrevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:07
Rob Philpott1-Mar-10 5:07 

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.