[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::nt-developers

Title:MS Windows NT Developers
Notice:See note 1222 for MS bug reporting info
Moderator:TARKIN::LINEIBER
Created:Mon Nov 11 1991
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3247
Total number of notes:15633

3215.0. "Startup Code Problems" by HYDRA::BRYANT () Wed Mar 26 1997 17:15

I have a partner who is porting their Intel based app to alpha.  Dr. Watson
kicks in even before their desktop app gets to main().  They are running NT 4.0
and used VC++ 4.0 to build the app.  The error messages look something like this:

	cthreadslotdata::getvaluemember
	cprocessorlocalobject::getdata()
	AFX_module_state::AFX_get_app_module_state


Does anyone recognize these? Or have any suggestions on how to get rid of them?
Thanks.
Pat Bryant
Software Partners Engineering
T.RTitleUserPersonal
Name
DateLines
3215.1initialization order different on an Alpha?DECWET::PETERSONThu Mar 27 1997 11:468
    I'm guessing that the initialization code is trying to read thread
    local storage before it is allocated.
    
    If that doesn't ring any bells with the partner, have the partner look
    at his static constructors for any use of thread local storage
    (which may be declared with __declspec(thread) or allocated using special
    runtime routines (TlsAlloc, TlsGetValue, ...)
    
3215.2Had to recompile appmodule.cppNNTPD::"bryant@fluid.mro.dec.com"Pat BryantThu May 15 1997 11:374
They are not using thread local storage.  They finally got it to 
work by recompiling appmodule.cpp within the MFC.  Any insight as to 
why they had to compile and link this module explicitly?
[Posted by WWW Notes gateway]