i have a dynamically sized array. It is created and sized within a function. I create and size it as follows:
double *dArray = NULL;
dArray = new double[nSomeSize];
I then pass this array to a dll function, like this:
I then delete the dyanmic array like this:
delete  dArray;
My program gives the ATTACHED ASSERTION error on the delete line (delete  dArray):
My best guess is that the Dll function is changed the size of my array argument dArray, so that when I try to delete it after use, I get the error.
Thanks very much.