Z
zhengfish
HI,all
I have a class named CCC which have some members of std::string
type.
I declare a class pointer like this:
CCC* ccc = new CCC( xml_input );
then I send the ccc to another module with msg_queue.
then this lead to a error on win32 platform, but it's works well
on Redhat Linux 9.0.
what's the reason?
the error info on windows as follows:
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: E:\works\server\debug\configer.exe
File: dbgheap.c
Line: 1132
Expression: _CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
I have a class named CCC which have some members of std::string
type.
I declare a class pointer like this:
CCC* ccc = new CCC( xml_input );
then I send the ccc to another module with msg_queue.
then this lead to a error on win32 platform, but it's works well
on Redhat Linux 9.0.
what's the reason?
the error info on windows as follows:
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: E:\works\server\debug\configer.exe
File: dbgheap.c
Line: 1132
Expression: _CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)