delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/12/09:00:34

Message-ID: <37624EFF.748D047A@hitech.net.au>
From: leroy <leroy AT hitech DOT net DOT au>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en,ja
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Log file and Win98 caching
References: <MPG DOT 11cb5f6afcb523fb98ad70 AT news DOT freeserve DOT net>
Organization: Internet Primus
Cache-Post-Path: diddley.primus.com.au!unknown AT ras39 DOT ports DOT bgn DOT primus DOT com DOT au
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Lines: 31
Date: Sat, 12 Jun 1999 22:13:52 +1000
NNTP-Posting-Host: 203.134.0.92
X-Complaints-To: abuse AT telstra DOT net
X-Trace: wa.nnrp.telstra.net 929190013 203.134.0.92 (Sat, 12 Jun 1999 22:20:13 EST)
NNTP-Posting-Date: Sat, 12 Jun 1999 22:20:13 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hmmm, yeah I hate Windows file caching sometimes too.  A simple solution is to
run it from straight DOS.

The other way is to get a program like CacheMan (which I think is Freeware)
that lets you adjust Win9x's virtual disk cache.  A note though, turning off
disk caching in Windows is a bad practice.  Windows buffers many things and
turning off the vcache will grind your PC to a halt.

My third advice is to use a debugger to find the exact location of the crash,
then next time, check all the values of the variables that could be causing
the crash.

Cheers,

leroy.


"Andrew R. Gillett" wrote:

> I ran my game on a friend's PC to test it, and it crashed immediately -
> hanging the whole system. When this happens, it doesn't create a logfile
> as it normally does. I suspect this is probably due to write-behind
> caching in Win98 - is there any way I can make it so that it creates the
> file as soon as I call fopen, and writes to the file as soon as I call
> fprintf?
>
> --
> Andrew Gillett      http://argnet.fatal-design.com/     ICQ: See homepage
> "You will be strung from a tree and your liver pecked out by ravens if you
>  do not keep up payments." - Alexei Sayle

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019