Hi,
I am working on a Win32 c++ application in Visual studio.
In one of the source files, I have global object like below.
TestClass tObj;
int main() //Execution starts here
{
}
TestClass is defined in other DLL like below.
struct Source
{
};
class TestClass
{
list<Source> sourceList;
public:
TestClass() {}
~TestClass() {}
};
While my application is running, if i try to close the app explicitly, by closing the console window, it is crashing in TestClass destructor. Callstack shows CrtIsValidHeapPointer is failing.
Pls help me to solve this issue.