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: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 25 Dec 2013 11:32:39 +0100
Depending how the server enforce limitation, you may managed to do what you want using curl and the '-r' option, which let you specify a range of the file you want to download.
Maybe requesting "small enough" ranges one after an other will work.
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.)
-- Jean-Daniel
|
_______________________________________________
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