Mail Archives: djgpp/1997/12/22/06:46:47
Jaster (jaster32 AT hotmail DOT com) writes:
> My friend can compile his program ok in DJGPP but when he trys to run
> it says....
>
> Program exit code: 255 (0x00ff)
> then in the message window it says:
> Call frame traceback:
> in function draw_sprite+25
> in function _ctrl_startup+138
>
> This doesn't happen for me when I compile it and run it... anyone know
> what he's doing wrong?? I'm stumped.. I can send source code if you
> need to look at it...
You run it under Widnows which doesn't bomb on a NULL pointer, which is a
Windows bug. He runs under CWSDPMI which reports all errors.
The bug: you call draw_sprite in a g.d. constructor somewhere, before
you've even done any allegro_init()ing or set_gfx_mode()ing! As a result,
it is trying to draw that sprite directly to Never Never Land. <g>
(Otherwise, there's no way in hell to get to draw_sprite directly from
crt1_startup!)
--
.*. Friendship, companionship, love, and having fun are the reasons for
-() < life. All else; sex, money, fame, etc.; are just to get/express these.
`*' Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com
- Raw text -