Re: Crash in NSFileManager
Re: Crash in NSFileManager
- Subject: Re: Crash in NSFileManager
- From: "Sean McBride" <email@hidden>
- Date: Sat, 8 Nov 2008 15:55:14 -0500
David (email@hidden) on 2008-11-8 2:57 PM said:
>I'm trying to understand a crash log a customer sent me.
Have you read:
<http://developer.apple.com/technotes/tn2004/tn2123.html>
>This is a universal application using GC on Leopard. If I'm reading it
>correctly, it looks like the application was being run on a PowerPC
>machine with Leopard.
Correct.
>My application is invoking NSFileManager copyPath:toPath:handler:
>It is possible that the user picked some weird value for toPath but it
>must exist because they picked it using NSOpenPanel.
Race conditions are often possible with files. The file could have been
deleted between choosing it in the panel and your code running.
Unlikely though.
>How or why can this be causing a crash? Especially inside
>NSFIleManager dealing with retain in a GC application?
>
>Is this a Cocoa bug? Are there things I can do to prevent this crash?
Can you repro it? Maybe try guard malloc, etc. See:
<http://developer.apple.com/technotes/tn2004/tn2124.html>
Sean
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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