David,

yes, I'm calling VFS routines from background task not from UI task. But I
don't suppose that I can call VFS routines when other VFS call wasn't
complete yet. How to avoid this problem?

Bets regards,
Alex.

"David Fedor" <[EMAIL PROTECTED]> wrote:
news:67552@palm-dev-forum...
>
> >I have some difficulties with VFS file I/O. I open file on the MMC card
> >using read/write access and use it in the background task. The main
problem
> >is that PalmOS doesn't allow vfsModeLeaveOpen flag and I should reopen
file
> >each time when foreground applications are switched.
>
> You're calling VFS routines from a different task than the UI task?  I
> don't know that it is certified for use in anything other than the main
> thread: reentrant code generally isn't something that most of the 4.0 OS
is
> designed for, and it could easily cause weird problems like the ones you
> mention.
>
> -David Fedor
> Palm, Inc.
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to