OK, I found the reason that CWinThread::InitInstance() was returning FALSE.  It's 
because CWinThread::InitInstance() always returns FALSE!  When I changed my own 
thread's version of InitInstance() to return TRUE (instead of return 
CWinThread::InitInstance()) all works fine.
Seems pretty hokey to me.  Why's the documentation say that CWinThread::InitInstance 
should return nonzero if successful?

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Palmer, Jean L.
> Sent: Friday, October 29, 2004 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [msvc] thread exits prematurely
> 
> 
> Yes, InitInstance() is returning FALSE. But the compiler is 
> not letting me step into any MFC code, including 
> InitInstance.  Is someone aware of some settings I need to 
> change in order to allow stepping into Microsoft's code?
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Ehsan Akhgari
> > Sent: Friday, October 29, 2004 10:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [msvc] thread exits prematurely
> > 
> > 
> > Try to step into InitInstance( ) and see what goes wrong.  
> Somewhere,
> > probably something is returning FALSE.
> > 
> > 
> > -------------
> > Ehsan Akhgari
> > 
> > Farda Technology (http://www.farda-tech.com/)
> > 
> > List Owner: [EMAIL PROTECTED]
> > 
> > [ Email: [EMAIL PROTECTED] ]
> > [ WWW: http://www.beginthread.com/Ehsan ]
> > 
> > State is the name of the coldest of all cold monsters. Coldly 
> > it lies; and
> > this lie slips from its mouth: "I, the state, am the people."
> > -Thus Spoke Zarathustra, F. W. Nietzsche
> > 
> > 
> > 
> > 
> > _______________________________________________
> > msvc mailing list
> > [EMAIL PROTECTED]
> > See 
> > http://beginthread.com/mailman/listinfo/msvc_beginthread.com 
> > for subscription changes, and list archive.
> > 
> 
> _______________________________________________
> msvc mailing list
> [EMAIL PROTECTED]
> See 
http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, 
and list archive.

_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to