Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moving messages Pin
simworld8-Jan-08 7:37
simworld8-Jan-08 7:37 
GeneralRegex.Matches() problem Pin
Seishin#7-Jan-08 2:42
Seishin#7-Jan-08 2:42 
GeneralRe: Regex.Matches() problem Pin
LuCasn7-Jan-08 2:45
LuCasn7-Jan-08 2:45 
GeneralRe: Regex.Matches() problem Pin
Seishin#7-Jan-08 2:57
Seishin#7-Jan-08 2:57 
GeneralRe: Regex.Matches() problem Pin
Skippums7-Jan-08 2:56
Skippums7-Jan-08 2:56 
GeneralRe: Regex.Matches() problem Pin
Seishin#7-Jan-08 3:09
Seishin#7-Jan-08 3:09 
QuestionWho tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 2:40
LuCasn7-Jan-08 2:40 
GeneralRe: Who tells an object the application wants to exit and where? Pin
Skippums7-Jan-08 3:09
Skippums7-Jan-08 3:09 
You will need to some how signal the thread that it is time to exit. One way to do this (logically, but I leave coding it up to you) is as follows...
1. Create a shared boolean object initialized to false called "TimeToExit"
2. Periodically check the value of TimeToExit from the running thread.  If true, exit.
3. From the main thread, after setting TimeToExit to "True" and waiting for some amount
   of time without the thread ending (the maximum thread response time), kill the thread :(
Note that you will NOT need to make the boolean thread safe, as one thread is reading and the other is writing, and no inconsistent state can occur here. Hope this helps,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: Who tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 3:15
LuCasn7-Jan-08 3:15 
GeneralRe: Who tells an object the application wants to exit and where? Pin
Skippums7-Jan-08 3:24
Skippums7-Jan-08 3:24 
GeneralRe: Who tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 3:36
LuCasn7-Jan-08 3:36 
QuestionRichTextBox Find Method Pin
Programm3r7-Jan-08 2:18
Programm3r7-Jan-08 2:18 
GeneralRe: RichTextBox Find Method Pin
Skippums7-Jan-08 2:38
Skippums7-Jan-08 2:38 
QuestionRe: RichTextBox Find Method Pin
Programm3r7-Jan-08 3:22
Programm3r7-Jan-08 3:22 
GeneralRe: RichTextBox Find Method Pin
Skippums7-Jan-08 3:33
Skippums7-Jan-08 3:33 
GeneralRe: RichTextBox Find Method Pin
Programm3r7-Jan-08 3:39
Programm3r7-Jan-08 3:39 
GeneralRe: RichTextBox Find Method Pin
m@u7-Jan-08 2:50
m@u7-Jan-08 2:50 
QuestionCustomize button Pin
somit taank7-Jan-08 2:13
somit taank7-Jan-08 2:13 
GeneralRe: Customize button Pin
Skippums7-Jan-08 2:33
Skippums7-Jan-08 2:33 
GeneralProject documentation Pin
sami_pak7-Jan-08 2:04
sami_pak7-Jan-08 2:04 
GeneralRe: Project documentation Pin
Skippums7-Jan-08 2:17
Skippums7-Jan-08 2:17 
GeneralRe: Project documentation Pin
Pete O'Hanlon7-Jan-08 3:44
mvePete O'Hanlon7-Jan-08 3:44 
Questionhow can i do this ? Pin
prasadbuddhika7-Jan-08 1:03
prasadbuddhika7-Jan-08 1:03 
AnswerRe: how can i do this ? Pin
Pete O'Hanlon7-Jan-08 1:20
mvePete O'Hanlon7-Jan-08 1:20 
GeneralRe: how can i do this ? Pin
prasadbuddhika7-Jan-08 20:14
prasadbuddhika7-Jan-08 20:14 

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.