Re: Calling fopen() from a simple C++ program in Xcode 5.0.2 raises EXC_BAD_ACCESS, code=2
Re: Calling fopen() from a simple C++ program in Xcode 5.0.2 raises EXC_BAD_ACCESS, code=2
- Subject: Re: Calling fopen() from a simple C++ program in Xcode 5.0.2 raises EXC_BAD_ACCESS, code=2
- From: Dan Korn <email@hidden>
- Date: Tue, 24 Dec 2013 12:31:14 -0600
Thanks Ken. That was it. That also explains why removing the code that declares that variable prevents the crash.
FWIW, the same program built and debugged in Visual Studio raises a stack overflow exception, which is much more helpful feedback than just "bad access."
I guess I failed at my little C++ 101 project here. (I'm also getting zero back from the call to fread; I need to put specify the item size of 1 before the size in bytes.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden