Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multithread and GDI Issues Pin
Cedric Moonen8-Mar-08 23:09
Cedric Moonen8-Mar-08 23:09 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan9-Mar-08 2:26
kanduripavan9-Mar-08 2:26 
GeneralRe: Multithread and GDI Issues Pin
Cedric Moonen9-Mar-08 2:34
Cedric Moonen9-Mar-08 2:34 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan9-Mar-08 2:49
kanduripavan9-Mar-08 2:49 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan10-Mar-08 0:08
kanduripavan10-Mar-08 0:08 
GeneralRe: Multithread and GDI Issues Pin
Rajkumar R10-Mar-08 0:46
Rajkumar R10-Mar-08 0:46 
GeneralRe: Multithread and GDI Issues Pin
Mark Salsbery9-Mar-08 8:58
Mark Salsbery9-Mar-08 8:58 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan10-Mar-08 0:18
kanduripavan10-Mar-08 0:18 
I have one one critical section shared by all the threads. I had Initialized the critical section before creating the child threads.
I have 2 doubts.

1.The critical section is initialized by the UI Thread ie by the primary thread. So is it there it can go wrong.

2.Lets leave the GDI issue and consider the handle as a shared object
which is inside the critcal section. SO how can the 2nd or the 3rd thread can enter and access it. As a beginner it seems for me that is is not logically valid. (the thread trying to acess gdi handles which is inside the critical section). I am extremely sorry to say these lines.

The assertion is shown in GDI files. But as far as i know it occured
due to the line
dc.LineTo(pt1);//From here onwards the error might have occured

I like to thank you for supporting the one who doesnt knows anything.

Thank you.
GeneralRe: Multithread and GDI Issues Pin
Mark Salsbery10-Mar-08 6:52
Mark Salsbery10-Mar-08 6:52 
GeneralRe: Multithread and GDI Issues Pin
Mark Salsbery10-Mar-08 6:55
Mark Salsbery10-Mar-08 6:55 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan11-Mar-08 8:12
kanduripavan11-Mar-08 8:12 
QuestionHow can I get the mouse position when i click on the CListCtrl? Pin
Md. Ali Naser Khan8-Mar-08 18:00
Md. Ali Naser Khan8-Mar-08 18:00 
AnswerRe: How can I get the mouse position when i click on the CListCtrl? Pin
Md. Ali Naser Khan8-Mar-08 19:48
Md. Ali Naser Khan8-Mar-08 19:48 
GeneralRe: How can I get the mouse position when i click on the CListCtrl? Pin
Rajkumar R8-Mar-08 21:28
Rajkumar R8-Mar-08 21:28 
GeneralCSpinButton event handling Pin
Tom Paronis8-Mar-08 10:16
Tom Paronis8-Mar-08 10:16 
GeneralRe: CSpinButton event handling Pin
Mark Salsbery8-Mar-08 10:21
Mark Salsbery8-Mar-08 10:21 
GeneralRe: CSpinButton event handling Pin
Tom Paronis8-Mar-08 10:27
Tom Paronis8-Mar-08 10:27 
GeneralRe: CSpinButton event handling Pin
Mark Salsbery8-Mar-08 11:30
Mark Salsbery8-Mar-08 11:30 
GeneralRe: CSpinButton event handling Pin
Tom Paronis9-Mar-08 8:31
Tom Paronis9-Mar-08 8:31 
GeneralRe: CSpinButton event handling Pin
Mark Salsbery9-Mar-08 8:43
Mark Salsbery9-Mar-08 8:43 
GeneralRadio Buttons Pin
RomTibi8-Mar-08 9:02
RomTibi8-Mar-08 9:02 
GeneralRe: Radio Buttons Pin
Christian Graus8-Mar-08 14:25
protectorChristian Graus8-Mar-08 14:25 
GeneralRe: Radio Buttons Pin
RomTibi8-Mar-08 23:47
RomTibi8-Mar-08 23:47 
GeneralRe: Radio Buttons Pin
Hamid_RT9-Mar-08 0:46
Hamid_RT9-Mar-08 0:46 
GeneralRe: Radio Buttons Pin
RomTibi9-Mar-08 8:25
RomTibi9-Mar-08 8:25 

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.