Click here to Skip to main content
16,015,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Components and Controls in VC7 Pin
Rama Krishna Vavilala30-May-02 7:23
Rama Krishna Vavilala30-May-02 7:23 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 9:20
Mazdak30-May-02 9:20 
GeneralRe: Components and Controls in VC7 Pin
Le centriste30-May-02 9:28
Le centriste30-May-02 9:28 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 21:16
Mazdak30-May-02 21:16 
GeneralWorker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 6:36
Chris Meech30-May-02 6:36 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Prem Kumar30-May-02 7:11
Prem Kumar30-May-02 7:11 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 7:25
Chris Meech30-May-02 7:25 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Tomasz Sowinski30-May-02 13:16
Tomasz Sowinski30-May-02 13:16 
If you set m_bAutoDelete to TRUE, your thread will delete yourself. The value of 'aThreads[iArrayIndex]' in GetExitCodeThread call points to freed memory block and there's absolutely no guarantee that m_Handle contains valid value.

In short, you shouldn't use m_bAutoDelete --or-- you should store thread handles in other location.

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech31-May-02 2:22
Chris Meech31-May-02 2:22 
General"Scalar deleting destructor" error Pin
Jason Hihn30-May-02 6:07
Jason Hihn30-May-02 6:07 
GeneralRe: "Scalar deleting destructor" error Pin
Prem Kumar30-May-02 7:14
Prem Kumar30-May-02 7:14 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:19
Jason Hihn30-May-02 7:19 
GeneralRe: "Scalar deleting destructor" error Pin
Rama Krishna Vavilala30-May-02 7:25
Rama Krishna Vavilala30-May-02 7:25 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:53
Jason Hihn30-May-02 7:53 
GeneralRe: "Scalar deleting destructor" error Pin
Rama Krishna Vavilala30-May-02 8:02
Rama Krishna Vavilala30-May-02 8:02 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:58
Jason Hihn30-May-02 7:58 
GeneralRe: "Scalar deleting destructor" error Pin
Bill Wilson30-May-02 11:53
Bill Wilson30-May-02 11:53 
GeneralRe: "Scalar deleting destructor" error Pin
wqw31-May-02 2:14
wqw31-May-02 2:14 
GeneralRe: "Scalar deleting destructor" error Pin
31-May-02 2:42
suss31-May-02 2:42 
Generala really simple question (i think) Pin
vb_200230-May-02 5:01
vb_200230-May-02 5:01 
GeneralRe: a really simple question (i think) Pin
Prem Kumar30-May-02 5:09
Prem Kumar30-May-02 5:09 
GeneralRe: a really simple question (i think) Pin
Paul M Watt30-May-02 5:29
mentorPaul M Watt30-May-02 5:29 
GeneralRe: a really simple question (i think) Pin
vb_200230-May-02 5:54
vb_200230-May-02 5:54 
GeneralRe: a really simple question (i think) Pin
Paul M Watt30-May-02 7:05
mentorPaul M Watt30-May-02 7:05 
GeneralRe: a really simple question (i think) Pin
wqw31-May-02 2:23
wqw31-May-02 2:23 

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.