S
Steven Cool
I have a c++ dll which i use in c# classes with the help of a wrapper
class.
In that wrapper class I have a destructor but I also have a destructor
in my c++ class. It looks like thios
----------------
c++ class:
class Object
{
Object::Object(){...}
Object::~Object(){...}
}
-------------------
Wrapper class:
class WrapperObject:
{
private Object o;
WrapperObject::WrapperObject{...}
WrapperObject::~WrapperObject{...}
}
-----------------------
When I run the code, I sometimes (not always) get this error:
HEAP[CanTracer.exe]: Heap block at 07BC9C08 modified at 07BC9BFB past
requested size of ffffffeb
Could it be that this 'double destructor' is the reason?
How to solve it on a goor manner?
class.
In that wrapper class I have a destructor but I also have a destructor
in my c++ class. It looks like thios
----------------
c++ class:
class Object
{
Object::Object(){...}
Object::~Object(){...}
}
-------------------
Wrapper class:
class WrapperObject:
{
private Object o;
WrapperObject::WrapperObject{...}
WrapperObject::~WrapperObject{...}
}
-----------------------
When I run the code, I sometimes (not always) get this error:
HEAP[CanTracer.exe]: Heap block at 07BC9C08 modified at 07BC9BFB past
requested size of ffffffeb
Could it be that this 'double destructor' is the reason?
How to solve it on a goor manner?