• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
fopen() works only in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: fopen() works only in debugger
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Preventing beach balls
  • Next by Date: Re: fopen() works only in debugger
  • Previous by thread: Re: oddball WebKit printing issues
  • Next by thread: Re: fopen() works only in debugger
  • Index(es):
    • Date
    • Thread