Advertisement

11.09.2007 at 03:38AM PST, ID: 22949742
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

AfxGetModuleThreadState sometimes crash on exit. Only in release builds.

Asked by rj_dds_no in Windows MFC Programming

Tags:

Tools/platform: Visual Studio 2005, VC++ 8.0, Windows XP.
Build: Multithreaded DLL release libs. (/MD)

In release build (never in debug build) our program occasionally crash on exit. It seems to happen during handling of WM_COMMAND / ID_APP_EXIT. Any idead why? What condition can cause this? What to check?
The crash dump call stack will always look similar to this:

       ntdll.dll!7c943151()       
       [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]      
       mfc80.dll!CThreadLocalObject::GetData(CNoTrackObject * (void)* pfnCreateObject=0x781ff99d)  Line 430 + 0x5 bytes      C++
>      mfc80.dll!AfxGetModuleThreadState()  Line 468 + 0x16 bytes      C++
       mfc80.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * hWnd=0x0001028a, unsigned int nMsg=273, unsigned int wParam=2147348480, long lParam=1244536)  Line 257 + 0x5 bytes      C++
       mfc80.dll!AfxWndProc(HWND__ * hWnd=0x00000000, unsigned int nMsg=396930597, unsigned int wParam=2015361171, long lParam=-267715202)  Line 388 + 0x10 bytes      C++
       mfc80.dll!AFX_MAINTAIN_STATE2::~AFX_MAINTAIN_STATE2()  Line 66      C++
       mfc80.dll!AfxWndProcBase(HWND__ * hWnd=0x0001028a, unsigned int nMsg=273, unsigned int wParam=57665, long lParam=0)  Line 411 + 0x26 bytes      C++
       user32.dll!7e418734()       
       mfc80.dll!CWinThread::PreTranslateMessage(tagMSG * pMsg=0x001588b8)  Line 773 + 0x9 bytes      C++
       mfc80.dll!AfxInternalPumpMessage()  Line 183      C++
       Bsp.exe!DdsWinApp::PumpMessage()  Line 1668      C++
       mfc80.dll!CWinThread::Run()  Line 625 + 0x7 bytes      C++
       Bsp.exe!DdsWinApp::Run()  Line 1128 + 0x5 bytes      C++
       mfc80.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00152336, int nCmdShow=3)  Line 47 + 0x7 bytes      C++
       Bsp.exe!__tmainCRTStartup()  Line 589 + 0x1d bytes      C

%Start Free Trial
 
Loading Advertisement...
 
[+][-]11.09.2007 at 06:48AM PST, ID: 20249695

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 07:28AM PST, ID: 20250109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 09:14AM PST, ID: 20251085

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 02:10PM PST, ID: 20253553

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 08:09PM PST, ID: 20254579

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.13.2007 at 07:07AM PST, ID: 20271948

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.16.2007 at 03:47AM PST, ID: 20297476

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.21.2008 at 10:49PM PST, ID: 20712362

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 02:53PM PST, ID: 20999377

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 02:03AM PST, ID: 21002372

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.02.2008 at 07:42AM PST, ID: 21026334

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.09.2008 at 10:03AM PDT, ID: 22196860

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.13.2008 at 04:10PM PDT, ID: 22226486

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows MFC Programming
Tags: afxgetmodulethreadstate
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628