delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/23/16:00:18

Newsgroups: comp.os.msdos.djgpp
From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann)
Subject: Re: This program won't work!
References: <3798AC68 DOT D3DEB5FF AT home DOT com>
X-Newsreader: News Xpress 2.01
Date: Fri, 23 Jul 1999 19:32:28 GMT
NNTP-Posting-Host: ppp36-28.hrz.uni-bielefeld.de
Message-ID: <3798c350.0@news.uni-bielefeld.de>
X-Trace: 23 Jul 1999 21:32:32 +0200, ppp36-28.hrz.uni-bielefeld.de
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <3798AC68 DOT D3DEB5FF AT home DOT com>, ALEXANDER PEREZ <coindood AT home DOT com> wrote:
>I have a program that just won't work!  It compiles fine, but when I run
>it, it gets this error:
[Traceback snipped]

>
>
> int main(void)
>        {
>        BITMAP *screen;    <-- delete this line!


[Rest of program snipped]

screen is already defined somewhere in allegro.h. Now you create a new bitmap 
called screen, but you don't do something like screen=create_bitmap (x,y).
Anytime you try to write something to a bitmap that wasn't created with 
create_bitmap or something doing the same job, something awfull is bound to 
happen.
Just delete the marked line and see where you get.

--

Manni

- Raw text -


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