Can't open a image

I'm using this code here

1
2
3
4
BITMAP*myplane=NULL;
myplane=load_bitmap("myplane_all-around_100hp.tga", NULL);
draw_sprite(screen,myplane,320,240);
destroy_bitmap(myplane);


But it comes up with this error

Debuy Error!

Program:
...isual_allegro\First\Allegro_testrun\Debug\Allegro_testun.exe

R6010
-abort() has been called

(Press Retry to bebug the application)


What's wrong with the code?
Topic archived. No new replies allowed.