Re: hm..i also have another question that i'm thinking of at the moment because

new topic     » topic index » view thread      » older message » newer message

On 10 Jan 2004, at 16:48, Pete Lomax wrote:

> 
> 
> On Sat, 10 Jan 2004 09:32:05 -0500, Michelle Rogers
> <michellerogers at bellsouth.net> wrote:
> 
> >Randomly, my program will shut down for a reason I have not figured out,
> >because usually it reboots my computer.  (This last time it did not though.)
> >And when I return and try to re-start the mud program.  It won't start
> >because
> >all of the data files are missing.
> If they are missing completely then run scandisk asap.
> If they are present, but empty this is probably because you opened the
> file for writing but it shut down before anything was written.
> Start running your program with trace(3) so that next time it reboots
> or shuts down without reason you have some clue where it went wrong.

And use flush() a *lot*.

Also, if the data is important, don't overwrite it. Save to a new file, like 
filename & sprintf("%d",data&time()) & ",txt" or something, then close/flush, 
and check the new file before deleting the old... or don't delete the old at
all,
just use the last file saved as the valid data next time you read data.

Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu