Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: safely end a thread Pin
Paulo Zemek1-Mar-10 7:07
Paulo 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
Paulo 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
Paulo Zemek2-Mar-10 6:17 
I think I know what's the problem.
You didn't return in the internal if.
So, stopRequested is true. Your method does not compare the files, but continue in it's loop, waits for 5 seconds and so on.

So, I think instead of:

C#
if (this.stopRequested != true)
{
... some code...
}


You should use:
C#
if (stopRequested)
  return;

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 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:19
sitebuilderLuc Pattyn1-Mar-10 5:19 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:35
Rob Philpott1-Mar-10 5:35 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:39
sitebuilderLuc Pattyn1-Mar-10 5:39 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Som Shekhar1-Mar-10 5:47
Som Shekhar1-Mar-10 5:47 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
PIEBALDconsult1-Mar-10 8:06
mvePIEBALDconsult1-Mar-10 8:06 

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.