This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Hi,

On Mon, Jan 14, 2013 at 6:11 AM, YZFury  wrote:
> 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.
>

Nitpick: it wasn't a syntax error but a logic error. Your program was
syntactically correct. Compilers are not allowed to generate object
code from C++ which contains a syntax error.

Note that your question had nothing to do with Cygwin. You happened to
use Cygwin, but the behavior would have been the same with any C
compiler and operating system. It would be better to ask in a general
C programming forum, e.g. stackoverflow.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]