Mail Archives: djgpp/2003/07/03/08:02:48.1
From: | Alexander Stapff <a DOT stapff AT gmx DOT de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Exectuable size = 0 after Ctrl+Break?
|
Date: | 3 Jul 2003 11:46:26 GMT
|
Lines: | 26
|
Message-ID: | <Xns93AD8C1CF7375astapffgmxde@130.133.1.4>
|
NNTP-Posting-Host: | p508e888b.dip0.t-ipconnect.de (80.142.136.139)
|
X-Trace: | fu-berlin.de 1057232786 77793 80.142.136.139 (16 [171242])
|
User-Agent: | Xnews/06.01.10
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I have a strange problem I can not find any solution for:
I am working at a program running under Romdos, compiled with djgpp 2
(gcc version 3.1) and using allegro 4.0.1. In the past I noticed, that on
some rare occasions, after a program crash the file size of the
executable was set to 0 bytes and the date to 01.01.1999.
Now I found, that I can reproduce the problem every time I hit
ctrl+break, which makes my program crash. Every time after such a crash
the executable size is set to 0 and the date again to 01.01.1999. Even
changing the file mode to "write protected" doesn't change that
behaviour.
The strange thing is, that my program never opens the executable for
writing (it is opened in rb mode at start up to check the file CRC but
closed after that - nevertheless my program writes once a second to an
other file but flushes and closes it after writing one data packet).
My main problem is, that the file is corrupted at a crash - normally
there is no keyboard connected to the computer running the program - but
I guess that both problems have the same cause.
Thanks for your help,
Alexander
- Raw text -