Hallo.
I have a class called Tfc_item, which contains a pointer to an object on the heap. When Tfc_item's destructor is called, this object is deleted.
My problem is, I am getting an exception class EPrivilege with message 'Privileged instruction'.
This doesn't mean a whole lot to me, but I have traced the problem to the point in the destructor when the object on the heap is deleted.
Does the STL's vector class also take care of deleting contained objects on the heap, or should I be looking for a problem elsewhere?
Cheers,
Douglas JL Common sense is what tells you the world is flat.
I have a class called Tfc_item, which contains a pointer to an object on the heap. When Tfc_item's destructor is called, this object is deleted.
My problem is, I am getting an exception class EPrivilege with message 'Privileged instruction'.
This doesn't mean a whole lot to me, but I have traced the problem to the point in the destructor when the object on the heap is deleted.
Does the STL's vector class also take care of deleting contained objects on the heap, or should I be looking for a problem elsewhere?
Cheers,
Douglas JL Common sense is what tells you the world is flat.