Re: Crash: HEAP: Free Heap block modified...
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 13:42:31 -0400
I see no place where this is happening. Look at the stack backtrace! There is no
instance of creating a process or window from OnPaint! Perhaps you were confused by
reading the stack trace backwards. There is no evidence in this stack trace of any
process creation in the middle of a paint operation.
***************TOP OF STACK (most recent execution)********************
NTDLL! 77f9193c()
NTDLL! 77f9c73e()
NTDLL! 77fb064e()
NTDLL! 77f9bd5a()
NTDLL! 77fcb63e()
_heap_alloc_base(unsigned int 112) line 200
_heap_alloc_dbg(unsigned int 68, int 1, const char * 0x5f4d096c
THIS_FILE, int 72) line 378 + 9 bytes
_nh_malloc_dbg(unsigned int 68, int 0, int 1, const char * 0x5f4d096c
THIS_FILE, int 72) line 248 + 21 bytes
_malloc_dbg(unsigned int 68, int 1, const char * 0x5f4d096c THIS_FILE,
int 72) line 165 + 27 bytes
operator new(unsigned int 68, int 1, const char * 0x5f4d096c
THIS_FILE, int 72) line 373 + 22 bytes
operator new(unsigned int 68, const char * 0x5f4d096c THIS_FILE, int
72) line 65 + 19 bytes
CMapPtrToPtr::InitHashTable(unsigned int 17, int 1) line 72 + 19 bytes
CMapPtrToPtr::operator[](void * 0x01010057) line 222
CHandleMap::SetPermanent(void * 0x01010057, CObject * 0x0012f804
{hDC=0x01010057 attrib=0x00000000}) line 183 + 12 bytes
CDC::Attach(HDC__ * 0x01010057) line 118
CWindowDC::CWindowDC(CWnd * 0x0cfd6d08 {CDockBar hWnd=0x0047086e})
line 1013 + 36 bytes
CControlBar::EraseNonClient() line 601 + 12 bytes
CDockBar::OnNcPaint() line 595
......stuff that happened before paint operation omitted
**************BOTTOM OF STACK*************
On Tue, 10 Apr 2007 17:04:51 +0200, Mihajlo Cvetanovic <mac@xxxxxxxxxxxxxxxxxx> wrote:
pascal.steiss@xxxxxx wrote:Joseph M. Newcomer [MVP]
...
AfxWndProcBase(HWND__ * 0x0047086e, unsigned int 133, unsigned int
2097417450, long 0) line 220 + 21 bytes
...
CDockBar::OnPaint() line 605 + 12 bytes
...
Somebody correct me if I'm wrong, but isn't it a bad idea to create
another window (or process messages in some other way) from OnPaint?
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Crash: HEAP: Free Heap block modified...
- From: Mihajlo Cvetanovic
- Re: Crash: HEAP: Free Heap block modified...
- References:
- Crash: HEAP: Free Heap block modified...
- From: pascal . steiss
- Re: Crash: HEAP: Free Heap block modified...
- From: Mihajlo Cvetanovic
- Crash: HEAP: Free Heap block modified...
- Prev by Date: Re: C++ Version 6 app using c++ version 8 dll
- Next by Date: Re: Are _T() and TEXT() macros equivalent?
- Previous by thread: Re: Crash: HEAP: Free Heap block modified...
- Next by thread: Re: Crash: HEAP: Free Heap block modified...
- Index(es):
Relevant Pages
|