Debug help please...
- From: "GT" <ContactGT_remove_@xxxxxxxxxxx>
- Date: Wed, 1 Aug 2007 10:42:35 +0100
I have just discovered a bug in my application. This bug is only present in
the debug version, so the release version is fine. Restoring backups shows
that the bug has been there for months - way back to when the application
barely worked, so it is something fundamental. Problem is that I have never
seen this error message before and don't know where to start diagnosing the
problem. The application stops with a 3 line message box:
Windows has triggered a breakpoint in Circa.exe.
This may be due to a corruption of the heap, and indicates a bug in
Circa.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
The output window is pretty long, so I have included it at the end of this
message. When I press the 'break' button and step into the place in the code
where the error is being reported, nothing makes sense - the break seems to
be in one of 2 places - one is half way through an OnInit method in a dialog
that I haven't even called. (A breakpoint in there, isn't hit). The other
place is in the childframe when loading an icon, but again attempts to debug
don't make sense - a watch on any of the local variables in the method where
the crash is reported can't be evaluated, so I guess the debugger is getting
confused and showing me the wrong thread place???
I suspect that the line towards the end of the output window is the key -
"Heap block 24b0f0 modified at 24b110 after it was freed", but how do I go
about debugging this problem. Or would you say something else is the root of
the problem and this is just a symptom?
Help!
My Output Window:
'Circa.exe': Loaded 'D:\Tassc\Circa\Testarea Debug\Circa.exe', Symbols
loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Circa.exe': Loaded 'D:\Tassc\Circa\Testarea Debug\Model.dll', Symbols
loaded.
'Circa.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_257740a4\mfc80d.dll',
Symbols loaded.
'Circa.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcr80d.dll',
Symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'Circa.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll',
No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
'Circa.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFCLOC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_91481303\mfc80ENU.dll',
Binary was not built with debug information.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
Warning: no shared menu for document template #129.
Warning: no shared menu for document template #129.
'Circa.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built
with debug information.
'Circa.exe': Loaded 'C:\WINDOWS\system32\riched32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\riched20.dll', No symbols loaded.
Warning: CMDIFrameWnd without a default menu.
Warning: Could not load type library from d:\Tassc\Circa\Testarea
Debug\Circa.exe
'Circa.exe': Loaded 'C:\WINDOWS\system32\SASE.OCX', Binary was not built
with debug information.
'Circa.exe': Loaded 'C:\WINDOWS\system32\olepro32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols loaded.
TRACE Warning: Navigator window not available yet in
CMainFrame::GetDocument() (GT)
'Circa.exe': Loaded 'C:\WINDOWS\system32\shdocvw.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\cryptui.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\wininet.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\urlmon.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\shdoclc.dll', Binary was not built
with debug information.
'Circa.exe': Loaded 'C:\WINDOWS\system32\mlang.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\mshtml.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msls31.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msimtf.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\Program Files\Common Files\Microsoft
Shared\DAO\dao360.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msjet40.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\mswstr10.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\vbajet32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\expsrv.dll', No symbols loaded.
'Circa.exe': Unloaded 'C:\WINDOWS\system32\vbajet32.dll'
'Circa.exe': Loaded 'C:\WINDOWS\system32\msjtes40.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\vbajet32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msjter40.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msjint40.dll', No symbols loaded.
DAO Call Failed.
m_pQueryDef->m_pDAOQueryDef->_30_OpenRecordset(
COleVariant((long)m_nOpenType), COleVariant((long)m_nOptions),
&m_pDAORecordset)
In file f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\daocore.cpp on line 3420
scode = 800A0C06
Error Code = 3078
Source = DAO.Database
Description = The Microsoft Jet database engine cannot find the input table
or query 'TEreportsettingssecond'. Make sure it exists and that its name is
spelled correctly.
First-chance exception at 0x7c812a5b in Circa.exe: Microsoft C++ exception:
CDaoException at memory location 0x0012d5a8..
'Circa.exe': Loaded 'C:\WINDOWS\system32\wdmaud.drv', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msacm32.drv', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', No symbols loaded.
'Circa.exe': Loaded 'C:\WINDOWS\system32\midimap.dll', No symbols loaded.
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
HEAP[Circa.exe]: HEAP: Free Heap block 24b0f0 modified at 24b110 after it
was freed
Windows has triggered a breakpoint in Circa.exe.
This may be due to a corruption of the heap, and indicates a bug in
Circa.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
.
- Follow-Ups:
- Re: Debug help please...
- From: Joseph M . Newcomer
- Re: Debug help please...
- From: Giovanni Dicanio
- Re: Debug help please...
- Prev by Date: Re: synchronizing mouse button events with a thread function
- Next by Date: Re: About MFC wizard
- Previous by thread: synchronizing mouse button events with a thread function
- Next by thread: Re: Debug help please...
- Index(es):
Relevant Pages
|