dbgheap line 1011
-
I have a problem runnin' my application. I used lots of char* 'cause I needed to scan ASCII files. Scanning one file is ok, but with more files, exiting the application generates a messages error "Instruction xxxx pointed to memory yyyy. Memory couldn't be 'read' (or 'written')" Debugging the application, the problem is located in dbgheap.h, line 1011. Changing the type of application, the problem shifts to sbheap.h. I've read about changing debug settings (using RTTI and so on), but the error still remain. Any suggestion? :confused:
-
I have a problem runnin' my application. I used lots of char* 'cause I needed to scan ASCII files. Scanning one file is ok, but with more files, exiting the application generates a messages error "Instruction xxxx pointed to memory yyyy. Memory couldn't be 'read' (or 'written')" Debugging the application, the problem is located in dbgheap.h, line 1011. Changing the type of application, the problem shifts to sbheap.h. I've read about changing debug settings (using RTTI and so on), but the error still remain. Any suggestion? :confused:
You are most likely writing past the end of an allocating heap block. You need to work through your code and try and track the cause down. There are various CRT Heap Debugging functions that will help with this. Google "crt debug heap" for help on this. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"