www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/04/20:03:52

From: random AT visi DOT net (Michael Bosley)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: Please tell me why this is crashing...
Date: Mon, 04 May 1998 23:43:38 GMT
Organization: @Home Network
Lines: 25
Message-ID: <354e4bad.36146135@news>
References: <354e2a93 DOT 27671024 AT news> <354E3074 DOT 3210 AT cam DOT org>
NNTP-Posting-Host: cx582964-a.nwptn1.va.home.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

Thanks for responding so quick.

>as far as I can see, you are making an array of POINTERS. You have to
>initialise EACH of those pointers to a structure.

>>     RGB_Color_ptr palette[256 + 1];

Oh man... I can't belive I missed that :)

I changed it to RGB_Color palette[256+1] and it, of course, works fine
:P

doh... 2 days down the tubes.

Thanks again!

Michael



!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      Do Not Send Me Unsolicited Email!      
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

- Raw text -


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