Mail Archives: djgpp/1998/11/25/20:05:14
From: | "Richard Pett" <rpett AT sparky DOT niwa DOT cri DOT nz>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | odd behaviour.
|
Date: | Thu, 26 Nov 1998 13:20:01 +1300
|
Organization: | National Insitute of Water and Atmosphere (http://www.niwa.cri.nz)
|
Lines: | 21
|
Message-ID: | <73i719$bmd$1@clam.niwa.cri.nz>
|
NNTP-Posting-Host: | 161.65.68.240
|
X-Trace: | clam.niwa.cri.nz 912039785 11981 161.65.68.240 (26 Nov 1998 00:23:04 GMT)
|
X-Complaints-To: | postmaster AT niwa DOT cri DOT nz
|
NNTP-Posting-Date: | 26 Nov 1998 00:23:04 GMT
|
X-Newsreader: | Microsoft Outlook Express 4.72.2106.4
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I have noticed the following odd behaviour in a program which I just wrote
using DJGPP and Allegro:
I declared a bitmap, (BITMAP *buffer2;) but then never got around to using
this variable for anything. The program compiles OK but when I execute it,
it immediately terminates, apparantly due do allegro_exit() being called.
Although I have fixed this problem by simply removing the declaration, I was
curious to know if anyone can tell me why this problem occured in the first
place - nothing bad happens if an integer is declared and then not defined.
Is this a BITMAP thing? An Allegro thing? A DJGPP thing?
All though this is not important, I would like to know if anyone is able to
explain this very odd behaviour. Thanks :-)
Richard Pett (r DOT pett AT niwa DOT cri DOT nz)
National Institute of Water and Atmospheric Research
NIWA, Box 8602 Phone +64 3 3488987
Christchurch, New Zealand Fax +64 3 3485548
- Raw text -