Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Strange error on "delete[] array" operation

$
0
0
What's up all? I'm getting a strange error during the delete[] A process. I know it is happening at that point because it is the only thing following an output before the return 0; statement. I'm seeing the output, but getting this error:

Quote

Unhandled exception at 0x76FBF8E9 (ntdll.dll) in a.exe: 0xC0000005: Access violation writing location 0x007A5A74


Mind you, this is happening during the delete[] A operation. It has to be since the statement immediately preceding it is executing and the statement immediately following it is return 0; to end the program.

cout << endl << "Total time: " << timer << " ms\n"; //this output occurs

delete[] A;

return 0;



Anyone have any ideas on this?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>