Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 9:11
roadragedave28-Apr-04 9:11 
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 9:15
David Crow28-Apr-04 9:15 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 9:24
roadragedave28-Apr-04 9:24 
GeneralRe: Passing classes into threads Pin
Michael Dunn28-Apr-04 14:05
sitebuilderMichael Dunn28-Apr-04 14:05 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar28-Apr-04 19:05
Jitendra gangwar28-Apr-04 19:05 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 22:58
roadragedave28-Apr-04 22:58 
GeneralRe: Passing classes into threads Pin
Paul Ranson28-Apr-04 23:36
Paul Ranson28-Apr-04 23:36 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar29-Apr-04 1:33
Jitendra gangwar29-Apr-04 1:33 
That is all right.Thanks for correcting me.
The memory violation that you are facing may be due to that you are creating a local object.when you are creating the thread and passing the pointer of it. but after creation of thread, the control come back in the main function and the local object will got out of scope.still the thread is running and trying to access it by the pointer and cause the memory violation. if this is a problem then you can allocate the object by 'new' operator. so when you don't want it you can deallocate it manually.

Jitendra
Questionhow can i dynamically get my machine ip address ? Pin
Marco M.28-Apr-04 6:17
Marco M.28-Apr-04 6:17 
AnswerRe: how can i dynamically get my machine ip address ? Pin
David Crow28-Apr-04 7:03
David Crow28-Apr-04 7:03 
AnswerRe: how can i dynamically get my machine ip address ? Pin
toxcct28-Apr-04 7:09
toxcct28-Apr-04 7:09 
AnswerRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 8:16
RNEELY28-Apr-04 8:16 
GeneralRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 9:09
RNEELY28-Apr-04 9:09 
QuestionFrequent open/close registry key? Pin
Gibson_66628-Apr-04 5:48
Gibson_66628-Apr-04 5:48 
AnswerRe: Frequent open/close registry key? Pin
David Crow28-Apr-04 7:10
David Crow28-Apr-04 7:10 
GeneralWeb Browser Pin
Moschous Manos28-Apr-04 5:28
Moschous Manos28-Apr-04 5:28 
GeneralMFC application with COM objects Pin
Brian van der Beek28-Apr-04 5:01
Brian van der Beek28-Apr-04 5:01 
GeneralRe: uint32 printing problem Pin
Trollslayer28-Apr-04 5:00
mentorTrollslayer28-Apr-04 5:00 
GeneralRe: uint32 printing problem Pin
roadragedave28-Apr-04 6:14
roadragedave28-Apr-04 6:14 
GeneralRe: uint32 printing problem Pin
David Crow28-Apr-04 7:22
David Crow28-Apr-04 7:22 
QuestionPlugin for VC++ that distributes the compiling across the network? Pin
Gywox28-Apr-04 4:39
Gywox28-Apr-04 4:39 
GeneralCMDIChildWnd maximized Pin
alex.barylski28-Apr-04 4:21
alex.barylski28-Apr-04 4:21 
GeneralRe: CMDIChildWnd maximized Pin
Ryan Binns28-Apr-04 18:06
Ryan Binns28-Apr-04 18:06 
GeneralPosting messages in a SDI app Pin
Trollslayer28-Apr-04 4:15
mentorTrollslayer28-Apr-04 4:15 
GeneralRe: Posting messages in a SDI app Pin
Anonymous28-Apr-04 4:21
Anonymous28-Apr-04 4: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.