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
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,