pfGeoSet::getPrimLengths problem on Onyx2

New Message Reply Date view Thread view Subject view Author view

Frederic Francis (fred++at++llogic.com)
Tue, 18 Mar 1997 01:42:24 -0800 (PST)


Hi,
        I've just begun porting some code from an Onyx iR (6.2) to an Onyx2 iR (6.4)
and pfGeoSet::getPrimLengths() seems to be misbehaving ?! It seems to always
return a NULL pointer on the Onyx2.

        The following piece of code works fine on 6.2 systems (including
Indigo2Impact) but fails on the Onyx2.

///////// START OF CODE /////////////////
#include <Performer/pf.h>
#include <Performer/pr/pfGeoSet.h>

void main (void) {

  pfInit();
  pfMultiprocess(0);
  pfConfig();

        pfGeoSet *gset = new pfGeoSet;
        int *primLength = (int *) new(sizeof(int)) pfMemory;
        primLength[0] = 4;

        cerr << " INITIAL primLength pointer: " << primLength << endl;

        gset->setPrimLengths(primLength);

        cerr << " RETRIEVED primLength pointer: " << gset->getPrimLengths() << endl;

  pfExit();
}
/////////END OF CODE /////////////////

6.2 Output:
 INITIAL primLength pointer: 0x18040a50
 RETRIEVED primLength pointer: 0x18040a50

6.4 Output:
 INITIAL primLength pointer: 0x500409d0
 RETRIEVED primLength pointer: 0x0

        Unfortunately, I don't have cvd running on the Onyx2 yet to see if the
problem is the setPrimLengths or in the getPrimLengths. I am confused (even more
than usual). Any thoughts ?
                                                Thanks in advance,
                                                                  Fred.

Frederic Francis
Lateral Logic
=======================================================================
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:54:54 PDT

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