M
Morten Lind
Hello
I'm having a problem with some DLL, that I wrote, and a test
application using it, which I also wrote.
In the DLL some class A is defined and exported. I have no problem
using it in the test application. Also in the DLL there is a class B
which has a method of the kind
void B::getSomeAs(vector<A>& aContainer)
I can call this method on a B-object without problems, and get some
nice A-objects into a "vector<A> myAs". No problem there.
The problem arises when destroying the myAs. I get an assertion
failure saying "Expression: _CrtIsValidHeapPointer(pUserData)". (The
problem is not solved by returning a vector<A> instead of passing a
reference.)
I use Visual Studio VC++ 6.0, and I'm not using MFC in any of the
projects. All compiler and linker options are set to the same in all
projects, so it should not be a problem of those sorts.
This is a big problem for me, and I have no idea what's wrong. Could
anybody help me out here?
Thanks,
Morten Lind.
I'm having a problem with some DLL, that I wrote, and a test
application using it, which I also wrote.
In the DLL some class A is defined and exported. I have no problem
using it in the test application. Also in the DLL there is a class B
which has a method of the kind
void B::getSomeAs(vector<A>& aContainer)
I can call this method on a B-object without problems, and get some
nice A-objects into a "vector<A> myAs". No problem there.
The problem arises when destroying the myAs. I get an assertion
failure saying "Expression: _CrtIsValidHeapPointer(pUserData)". (The
problem is not solved by returning a vector<A> instead of passing a
reference.)
I use Visual Studio VC++ 6.0, and I'm not using MFC in any of the
projects. All compiler and linker options are set to the same in all
projects, so it should not be a problem of those sorts.
This is a big problem for me, and I have no idea what's wrong. Could
anybody help me out here?
Thanks,
Morten Lind.