Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

YZFury
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

Dan Kegel-2
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

YZFury
This post was updated on .
Whoops.   I was making the pointer point to x instead of putting x's value in the memory that was just allocated.   Now i understand that. Really sorry for a stupid syntax error question on my part. thanks for the quick reply though :).  Like I said basically new to C.

Reply | Threaded
Open this post in threaded view
|

Re: Using the free(*ptr) routine and getting an exception, "Exception: STATUS_ACCESS_VIOLATION"

Csaba Ráduly
CONTENTS DELETED
The author has deleted this message.