|
-
August 22nd, 1999, 09:08 AM
#1
deleting array with delete causes an exception...
When I try to delete an array of a class consisting of two char pointers (strings) I get an exception. This does not happen when i declare the strings a given size (like char str1[16] ) but when I declare them as pointer and create them with new I get the exception.
they aren't deleted twice because if I don't delete them I get a memory leek... so is there a way to delete the array without an exception.
( I've tried delete and delete[] with no sucess )
//Calle Lennartsson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|