fopen() works only in debugger
fopen() works only in debugger
- Subject: fopen() works only in debugger
- From: Timothy Larkin <email@hidden>
- Date: Sat, 3 Mar 2007 17:16:35 -0500
I am working on a Foundation tool which calls fopen() from a class
method. It runs correctly under the debugger.
If the debug or the release target is run without the debugger, fopen
() returns a null pointer. However, if I call fopen() from main, it
returns a good pointer. Thus, it fails only if 1) it is run without
the debugger, and 2) it is called from a class method.
After a failure, errno is set to 24, which means "Too many open files".
This is difficult to debug since it doesn't fail when it's being
debugged.
--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden