Mail Archives: djgpp/1999/07/23/16:00:18
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 -