A
Al Newton
I created a DLL that reads a pointer to a vector created in a
console-mode test app as:
vector<LineItem*>* pLineItems = new vector<LineItem*>;
Everything seems to work fine (except for memory leaks) if I don't do
a delete in the test app. But if I do, I get an exception on the test
app's return 0 statement.
BoundsChecker tells me that I am attempting to free memory in the DLL
that was allocated in the test routine. I don't understand this
because the DLL does not contain even a single delete.
Can someone shed some light on this behavior? Thanks ... Al
console-mode test app as:
vector<LineItem*>* pLineItems = new vector<LineItem*>;
Everything seems to work fine (except for memory leaks) if I don't do
a delete in the test app. But if I do, I get an exception on the test
app's return 0 statement.
BoundsChecker tells me that I am attempting to free memory in the DLL
that was allocated in the test routine. I don't understand this
because the DLL does not contain even a single delete.
Can someone shed some light on this behavior? Thanks ... Al