delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/30/11:53:03

From: Radical NetSurfer <radsmail AT juno DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Are THESE two statements EQUAL?
Date: Fri, 30 Jun 2000 09:33:07 -0400
Message-ID: <618plssjva1r40in384ov5q6i0ihjdtm2f@4ax.com>
References: <5t7klskbj285civf9serk693otnho6t5j0 AT 4ax DOT com> <7qmkls0k46jupmhklc5sqesf999hn7vmjl AT 4ax DOT com> <8F61A359BASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <mvbllska0qcuhbt0iau00jdn2vp078mon7 AT 4ax DOT com> <8F626A568ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <83u2ec9mxn DOT fsf AT mercury DOT bitbucket> <9j2ols0u32mparptuk04fid732pc0o2ipv AT 4ax DOT com>
X-Newsreader: Forte Agent 1.8/32.548
X-No-Archive: yes
MIME-Version: 1.0
NNTP-Posting-Host: 216.202.134.182
X-Original-NNTP-Posting-Host: 216.202.134.182
X-Trace: 30 Jun 2000 09:35:36 -0400, 216.202.134.182
Lines: 43
X-Original-NNTP-Posting-Host: 64.31.79.51
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The ACTUAL code in the program does have the proper
balance of ( and )'s, and of course the program compiles.
That actual block of AllocABC()   has been called with
only 100 elements requested, and appears to pass the
initial tests perfectly.
Setting up the BITMAP's is relatively easy.
there's overhead work with Pallete thats a big pain though!
;-)

I've a lot of material to chew on and digest for a while anyways...
thanks everybody deeply!

I HAVE GOTTEN EXCELLANT idea's, and suggestions since
I've asked for help.  I WISH TO THANK all who have responded,
the good, the bad (sorry, there were some), and superbly awesome
ideas!
Emails were fascinating too...

radsmail AT juno DOT com
http://members.tripod.com/~RadSurfer/


On Thu, 29 Jun 2000 22:48:11 -0400, Radical NetSurfer
<radsmail AT juno DOT com> wrote:

[snip]
>   if  (Pieces = (BITMAP**)malloc(PUZ_SIZE * sizeof(BITMAP*)))==NULL )
[snip]

that line is your problem...
Pieces is being assigned 0 everytime, unless you forgot to type a ( in
your copying...  I don't even think it should compile that way
though...

Sean
------------------------------ and also -----------------------------
one more thing... why bother with the ALLOC_OK if you're exiting the
program before testing even if it isn't?

Sean
-----------------------------------------------------------------------------------------------------------


- Raw text -


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