I use microsoft visual studio 6.0 in writing my code in c, and i has a problem when dynamically allocating a large size of memory, the error is access violation to memory. the answer is how can i getride of this problem
How can i remove the penalty of access violation in c programming?
Do u deallocate memory (i.e. use free) each time u allocate some ?
Reply:Check for null or bad pointers in your program.
It sounds like your program has a bug where you are trying to access a bad memory location.
Reply:The access violation error is caused when you access memory that is NOT allocated to the program. This could be caused by a null or zero pointer.
Double check your pointer allocation that it is set to point to the allocated memory.
Reply:Post the buggy code so we can take a look.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment