Error "free"-ing "malloc"-ed memory 
Author Message
 Error "free"-ing "malloc"-ed memory

You should state exactly the error message, otherwise we can't help. =
Your code has probably been simplified, as it is it can't crash, the =
problem must be elsewhere. Two cases: 1) you called free more than once, =
2) you corrupted the heap by writing outside of the allocated block. =
Both cases can be trapped as assertions by the debug libraries.


>  I am developing a Windows NT console application with some code =
similar to
> the example below. When I am freeing the Data pointer I get some debug
> messages about "assertion error"; the pointer seems to be invalid. Do =
I have
> to free the memory block inside the same function as it is allocated =
> what?

Fri, 18 Feb 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problems freeing memory using "free"

2. remove() vrs fopen("""w")

3. Displaying binary data as ascii "1"'s and "0"'s

4. Looking for "Shroud"/"Obfus"

5. ""help with TSR""

6. Parse trees and "("")"

7. Displaying binary data as ascii "1"'s and "0"'s

8. Session.Remove("ed") vs. Session["ed"]=null

9. reading output from "exec"ed shell command

10. "Invalid access to memory location" error

11. ERROR: memory cannot be "read"

12. memory "read" error


Powered by phpBB® Forum Software