Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSOpenIterator returns -43



On Tue, 1 Jul 2008 11:27:17, "Sorin Negoita" <email@hidden> wrote:

I have a big problem with FSOpenIterator and USB memory sticks. I have a
process which creates a FSRef (with FSPathMakeRef) for a mounted USB stick
(let's say the path is "/Volumes/Stick/") and then it opens an iterator and
enumerate all files from the stick. If I unmount the USB stick and then
mount it back (by plugging it out and insert it back)

I take it you mean "by unmounting it in Finder, plugging it out and then
inserting back in".


and then tell my
process to enumerate again the files from the stick, FSOpenIterator will
return -43 (fnfErr) although the FSPathMakeRef returns noErr. It looks like
the FSRef obtained second time is invalid. If I restart my process,
everything works fine until the next unmount/mount of the USB stick. Any
ideas ?

I can't reproduce this with my stick. FSOpenIterator returns noErr for me
in this case.


Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.