Re: Having trouble with pfMalloc()(?)

New Message Reply Date view Thread view Subject view Author view

Tagore D. Smith (tdsmith++at++escher.cs.umass.edu)
Mon, 13 Jul 1998 14:31:35 -0400 (EDT)


On Mon, 13 Jul 1998, Bob Cowling wrote:

> I'm sure you'll be inundated with answers, but you've made a simple
> typo.
>
>
> Here's what you probably want (move the parentheses)
>
>
> striplengths=(int *)(pfMalloc((height-1)*sizeof(int),
> pfGetSharedArena()));
>
>
> What you had was allocating memory from the heap, but
> the real problem arose because the compiler was placing
> the shared arena in striplengths, which you were then setting
> the vtable and hidden members to be 2*width.
>

   Thank you very much, this was indeed the problem. Hard tyo believe I
couldn't see that. My apologies for taking up your time with it.

                                                       Tagore Smith

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:42 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.