Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating a colored, transparent CStatic Pin
David Fleming2-Sep-05 14:00
David Fleming2-Sep-05 14:00 
AnswerRe: Creating a colored, transparent CStatic Pin
David Fleming2-Sep-05 22:59
David Fleming2-Sep-05 22:59 
QuestionAbsent Thread Pin
Blake Miller2-Sep-05 10:53
Blake Miller2-Sep-05 10:53 
AnswerRe: Absent Thread Pin
Gary R. Wheeler3-Sep-05 2:36
Gary R. Wheeler3-Sep-05 2:36 
QuestionWhat do employers mean by .Net experience Pin
Brian R2-Sep-05 9:31
Brian R2-Sep-05 9:31 
AnswerRe: What do employers mean by .Net experience Pin
Chris Losinger2-Sep-05 10:43
professionalChris Losinger2-Sep-05 10:43 
QuestionThreading problem.. Pin
Laing,James2-Sep-05 8:42
Laing,James2-Sep-05 8:42 
AnswerRe: Threading problem.. Pin
Gary R. Wheeler3-Sep-05 2:43
Gary R. Wheeler3-Sep-05 2:43 
In step 3, you indicate that your parent thread waits for an object signalled by both threads that indicates that they are complete. The problem is, when each thread signals the event, they are still executing. Signaling the event causes the thread to pause its execution in favor of the thread waiting. If you delete the parent object at this point, and then the reader/writer threads continue, you will see the access violation.

You need to wait for both threads to finish executing before deleting the parent object. You can do this using ::WaitForMultipleObjects, passing it an array containing the handles to the reader and writer threads.


Software Zen: delete this;
GeneralRe: Threading problem.. Pin
Laing,James3-Sep-05 7:27
Laing,James3-Sep-05 7:27 
Question:: operator Pin
celllllllll2-Sep-05 7:47
celllllllll2-Sep-05 7:47 
AnswerRe: :: operator Pin
PJ Arends2-Sep-05 8:26
professionalPJ Arends2-Sep-05 8:26 
GeneralRe: :: operator Pin
celllllllll2-Sep-05 8:50
celllllllll2-Sep-05 8:50 
GeneralRe: :: operator Pin
PJ Arends2-Sep-05 9:03
professionalPJ Arends2-Sep-05 9:03 
GeneralRe: :: operator Pin
celllllllll6-Sep-05 10:28
celllllllll6-Sep-05 10:28 
QuestionCPreviewView Class Pin
mikobi2-Sep-05 7:18
mikobi2-Sep-05 7:18 
AnswerRe: CPreviewView Class Pin
PJ Arends2-Sep-05 8:21
professionalPJ Arends2-Sep-05 8:21 
GeneralRe: CPreviewView Class Pin
mikobi2-Sep-05 20:29
mikobi2-Sep-05 20:29 
GeneralRe: CPreviewView Class Pin
mikobi2-Sep-05 20:43
mikobi2-Sep-05 20:43 
GeneralRe: CPreviewView Class Pin
PJ Arends3-Sep-05 8:57
professionalPJ Arends3-Sep-05 8:57 
GeneralRe: CPreviewView Class Pin
mikobi4-Sep-05 21:18
mikobi4-Sep-05 21:18 
GeneralRe: CPreviewView Class Pin
PJ Arends4-Sep-05 21:32
professionalPJ Arends4-Sep-05 21:32 
GeneralRe: CPreviewView Class Pin
mikobi5-Sep-05 3:12
mikobi5-Sep-05 3:12 
GeneralRe: CPreviewView Class Pin
mikobi5-Sep-05 6:49
mikobi5-Sep-05 6:49 
QuestionRS232 problem Pin
transoft2-Sep-05 6:19
transoft2-Sep-05 6:19 
AnswerRe: RS232 problem Pin
Trollslayer2-Sep-05 6:21
mentorTrollslayer2-Sep-05 6:21 

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.