• 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
Re: try catch not catching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try catch not catching


  • Subject: Re: try catch not catching
  • From: Jerrod Fowkes <email@hidden>
  • Date: Wed, 1 Nov 2006 13:49:14 -0800 (PST)

j o a r <email@hidden> wrote:
Note that an exception handler only catches exceptions, not a real
"crash" of the program.
What type of crash are you seeing?

I have to agree with Sherm that if your breakpoint doesn't break, it
might be because of optimizations. Make sure that it's disabled - and
check both project and target build settings! Also make sure that the
source code you're looking at is matching your binaries - when in
doubt, make a clean build.

Well, I am getting better debugging results. I didn`t realize that it had to be set for both project and build, so I am good there..

Uncaught exception: <NSFileHandleOperationException> *** -[NSConcreteFileHandle fileDescriptor]: Bad file descriptor

is the error I am getting, my program doesn`t log what is in my catch block.
I have noticed that the file that I am reading from ( the serialized NSMutableDictionary ) seems to be corrupt...because if I delete it, then save some stuff to it, and read it back in then it`s fine.

I wasn`t aware that when reading a simple NSPropertyListSerialization from a file wouldn`t throw exceptions. Doesn`t seem to be stable.

the file is 24K, so I don`t think that would be a problem. I am also storing and reading it in as binary and not as xml.

-Jerrod




---------------------------------
Everyone is raving about the  all-new Yahoo! Mail.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: try catch not catching
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: try catch not catching (From: j o a r <email@hidden>)

  • Prev by Date: Re: try catch not catching
  • Next by Date: Core data, array controller, and add:
  • Previous by thread: Re: try catch not catching
  • Next by thread: Re: try catch not catching
  • Index(es):
    • Date
    • Thread