M
Maxim
Hi all,
I'm trying to use ATL (CString, CCOMSafeArray, etc.) classes in managed C++
code, but I get the following assert exeption when I start the application:
Debug Assertion Failed:
Expression: _CrtIsValidHeapPointer(pUserData)
in file dbgheap.c
......................
/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));
......................
I've found that this problems appears when I use ATL classes. Without them
the code works fine.
Can anybody help me with this?
Thanks in advance
I'm trying to use ATL (CString, CCOMSafeArray, etc.) classes in managed C++
code, but I get the following assert exeption when I start the application:
Debug Assertion Failed:
Expression: _CrtIsValidHeapPointer(pUserData)
in file dbgheap.c
......................
/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));
......................
I've found that this problems appears when I use ATL classes. Without them
the code works fine.
Can anybody help me with this?
Thanks in advance