www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/02/20:32:57

Sender: nate AT cartsys DOT com
Message-ID: <36DC9014.8ED46CFC@cartsys.com>
Date: Tue, 02 Mar 1999 17:27:48 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Am I doing something wrong?
References: <36DB0BBC DOT 5DCF578C AT uniyar DOT ac DOT ru>
Reply-To: djgpp AT delorie DOT com

Vlad Alexeev wrote:
> 
> I am writing in program -
> bitmap=load_bmp(bitmap);
> int s;
> s=getpixel(bitmap,4,4);
> ( this bitmap is (16,40) )
> , compiler eats this ok, but exe file crash at this point :(

Is `load_bmp(bitmap)' pseudo-code?  If not, that's the wrong way to call
it.  See its docs.  Also compile with -Wall, which will catch such
things.

Otherwise, do you check that `load_bmp' succeeds?

-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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