Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DialogBox Problem Pin
KarstenK28-Sep-08 22:41
mveKarstenK28-Sep-08 22:41 
AnswerRe: DialogBox Problem Pin
Hamid_RT29-Sep-08 7:21
Hamid_RT29-Sep-08 7:21 
QuestionHow do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Angelinna26-Sep-08 22:06
Angelinna26-Sep-08 22:06 
AnswerRe: How do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Cedric Moonen26-Sep-08 22:26
Cedric Moonen26-Sep-08 22:26 
AnswerRe: How do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Dhiraj kumar Saini26-Sep-08 22:34
Dhiraj kumar Saini26-Sep-08 22:34 
QuestionVC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans26-Sep-08 20:53
AlexEvans26-Sep-08 20:53 
QuestionRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery27-Sep-08 8:55
Mark Salsbery27-Sep-08 8:55 
AnswerRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans27-Sep-08 17:44
AlexEvans27-Sep-08 17:44 
Hi MArk,

Really apprecite you taking the time to try help me out here.
As I step through the code - in the last stage of exisiting, inside my "OnDestroy"

void CMainFrame::OnDestroy()
{
CFrameWnd::OnDestroy();
}

The debuger stops on the following "ATLASSERT()", obviously it expects nRefs to equal zero, and it is not so, but what does it refer to, I have no idea, or how do I find out either. This is inside "ATLSIMPSTR.H", ad I suspect it was there before, but VS 2003 was more forgiving...

void Release() throw()
{
ATLASSERT( nRefs != 0 );

if( _AtlInterlockedDecrement( &nRefs ) <= 0 )
{
pStringMgr->Free( this );
}
}

My application's name is MDPD.EXE - here is the call stack dump at the point of the crash...

mfc80d.dll!ATL::CStringData::Release() Line 107 + 0x3 bytes
mfc80d.dll!ATL::CSimpleStringT<wchar_t,1>::~CSimpleStringT<wchar_t,1>() Line 287
mfc80d.dll!ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >::~CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >() Line 1260 + 0x8 bytes MDPd.exe!`dynamic atexit destructor for 'RL7''() + 0x2b bytes
msvcr80d.dll!doexit(int code=0, int quick=0, int retcaller=0) Line 553
msvcr80d.dll!exit(int code=0) Line 398 + 0xd bytes
MDPd.exe!__tmainCRTStartup() Line 610
MDPd.exe!WinMainCRTStartup() Line 414
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery28-Sep-08 9:31
Mark Salsbery28-Sep-08 9:31 
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans28-Sep-08 12:35
AlexEvans28-Sep-08 12:35 
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery28-Sep-08 12:41
Mark Salsbery28-Sep-08 12:41 
Question[Message Deleted] Pin
AnithaSubramani26-Sep-08 20:26
AnithaSubramani26-Sep-08 20:26 
QuestionRe: dll creation with Dialog Pin
Mark Salsbery27-Sep-08 8:58
Mark Salsbery27-Sep-08 8:58 
AnswerRe: dll creation with Dialog Pin
Hamid_RT29-Sep-08 7:19
Hamid_RT29-Sep-08 7:19 
QuestionGetting Drives name Pin
VCProgrammer26-Sep-08 19:28
VCProgrammer26-Sep-08 19:28 
AnswerRe: Getting Drives name Pin
Mahesh Kulkarni26-Sep-08 20:11
Mahesh Kulkarni26-Sep-08 20:11 
AnswerRe: Getting Drives name Pin
Xeqtr27-Sep-08 0:43
Xeqtr27-Sep-08 0:43 
AnswerRe: Getting Drives name Pin
Hamid_RT29-Sep-08 7:18
Hamid_RT29-Sep-08 7:18 
QuestionCommand Line Error !! Pin
Le@rner26-Sep-08 18:23
Le@rner26-Sep-08 18:23 
AnswerRe: Command Line Error !! Pin
Mahesh Kulkarni26-Sep-08 19:47
Mahesh Kulkarni26-Sep-08 19:47 
QuestionMy unsolved "Restore window" question, help me plz! Pin
fantasy121526-Sep-08 17:41
fantasy121526-Sep-08 17:41 
AnswerRe: My unsolved "Restore window" question, help me plz! Pin
Iain Clarke, Warrior Programmer27-Sep-08 11:30
Iain Clarke, Warrior Programmer27-Sep-08 11:30 
Questionsetup of vc++ Pin
anilaabc26-Sep-08 17:12
anilaabc26-Sep-08 17:12 
AnswerRe: setup of vc++ Pin
Cedric Moonen26-Sep-08 22:28
Cedric Moonen26-Sep-08 22:28 
Questionset label font size Pin
anilaabc26-Sep-08 17:11
anilaabc26-Sep-08 17:11 

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.