www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/24/13:23:29

Date: Tue, 24 Apr 2001 20:20:50 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Peter" <icecoldgames AT hotmail DOT com>
Message-Id: <7458-Tue24Apr2001202050+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <uWeF6.158$ZT6.7203@read2.inet.fi> (icecoldgames@hotmail.com)
Subject: Re: Compiling Allegro under win2k.
References: <ej7F6.7$ZT6 DOT 371 AT read2 DOT inet DOT fi> <uWeF6.158$ZT6 DOT 7203 AT read2 DOT inet DOT fi>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Peter" <icecoldgames AT hotmail DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Tue, 24 Apr 2001 13:09:46 GMT
> 
> Another quickie question, my program
> crashes when reading image data, the line looks like this:
> 
> fread(Tga.image_descriptor, sizeof( unsigned char ), size, Data);

Hard to be sure without seeing the declarations, but I'm guessing that
you want this:

  fread(Data, sizeof( unsigned char ), size, Tga.image_descriptor);

- Raw text -


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