Hi guys,
I'm hoping you can help me with my problem. I'm using Visual C++ 2008 and i'm having _BLOCK_TYPE_IS_VALID Debug Assertion Failed! problem when i try to delete this array:
if i don't delete the array however, it would cause a memory leak.char * file = new char[255];
file = "this is a filename";
delete [] file;
Anyone knows what would be the problem with this?
Thank you.