delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/22/06:46:47

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 255 error
Date: 22 Dec 1997 11:10:49 GMT
Organization: The National Capital FreeNet
Lines: 29
Message-ID: <67lhrp$art@freenet-news.carleton.ca>
References: <349b49de DOT 19034473 AT news DOT earthlink DOT net>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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