Page 1 of 1

MC madness

Posted: Thu Jun 03, 2004 4:38 am
by tjd
Is it just me, or do others get wierd results sometimes when reading (::read, ::fioRead etc.) from files on a MC. The opens always seem to work, but some files just return 0 bytes on a read (although the directory has the correct length).

I'm using MCMAN if that makes any difference...

Posted: Thu Jun 03, 2004 5:02 am
by pixel
Maybe you should try XMCMAN. I noticed a few differences between the two, which are quite significant. For example, one can open files using MCMAN which filename contains "\", whereas you can't using XMCMAN.

Posted: Thu Jun 03, 2004 6:26 am
by Drakonite
I haven't really noticed it so much, but supposedly fio is a bit flakey. Have you tried using MCOpen, etc. ?

Posted: Thu Jun 03, 2004 9:58 pm
by tjd
Haven't used mcopen in this instance-- can't easily because of the nature of the code (higher layers don't know where the file may reside so they just issue an open...).

As for XMCMAN, where does one get one (the IRXs I mean).

Posted: Thu Jun 03, 2004 11:17 pm
by KaylaKaze
personally, I like fio better because for some reason, when I have to write a few files consecutively, when I had a routine that used libmc the first file in the group was never closed, even though all necessary mcclose and mc sync calls were made. At least I think that was the problem. It was undeleteable until after reboot and had 0 filesize.

Posted: Fri Jun 04, 2004 4:13 am
by Drakonite
tjd wrote: As for XMCMAN, where does one get one (the IRXs I mean).
SifLoadModule("rom0:XMCMAN", 0, NULL);