Page 1 of 2

Why is this an error?

PostPosted: Jun 3, 2002 @ 11:59pm
by R0B

PostPosted: Jun 4, 2002 @ 12:40am
by R0B

PostPosted: Jun 4, 2002 @ 12:45am
by BurningSheep

Suggestion

PostPosted: Jun 4, 2002 @ 12:46am
by fzammetti

PostPosted: Jun 4, 2002 @ 1:17am
by Dan East

PostPosted: Jun 4, 2002 @ 1:36am
by R0B

PostPosted: Jun 4, 2002 @ 1:53am
by R0B

PostPosted: Jun 4, 2002 @ 2:16am
by R0B

PostPosted: Jun 4, 2002 @ 2:27am
by R0B

PostPosted: Jun 4, 2002 @ 6:30am
by Dan East
First off, I would check the return code of fseek to make sure it isn't failing first. ferror returns the current error code, even if it wasn't set in the last function call (the only things that clear the error code is clearerr, fclose and the unsupported rewind function). The Windows system error number 32 is "The process cannot access the file because it is being used by another process." I don't know if that corresponds to the errors as returned by ferror or not. Whatever creates fpse.ini is not writing to it while you're trying to read, is it?

Also, remember that it is possible for the filesystem on your Pocket PC / Storage Card to become corrupted. It is just a standard FAT filesystem. If the file is corrupted errors could certainly be encountered when trying to read it. Try pulling it up in Pocket Word or copying it over to your PC.

Dan East

PostPosted: Jun 4, 2002 @ 7:51pm
by R0B

PostPosted: Jun 4, 2002 @ 8:57pm
by R0B
Ok, as I pound a book into my head, I think I fixed the problem (knock on wood). It appears as if another file included in the program defined fopen, fseek,... with it's own set of comands. Now, I have fixed that, and here is hoping that it will work :arrow:

PostPosted: Jun 4, 2002 @ 9:07pm
by R0B
Yep, that was it. I wasted a day of programing because a simple fopen was declared incorrectly. Wow, am I pissed right now.

PostPosted: Jun 4, 2002 @ 9:20pm
by Malmer

PostPosted: Jun 4, 2002 @ 9:49pm
by R0B
Good call