RE: HELP!!!!

New Message Reply Date view Thread view Subject view Author view

From: Ran Yakir (ryakir++at++vizrt.com)
Date: 11/10/2001 13:56:18


Hi,
 
Apparently you did something wrong: you should create your Performer objects
using their constructors and not with pfMalloc.
it should look like:
 
g = new pfGeode;
g1 = new pfGeoSet;
g2 = new pfGeoSet;
 
Regards
Ran

-----Original Message-----
From: Song Li [mailto:lisong++at++vrac.iastate.edu]
Sent: Sat, November 10, 2001 10:48 PM
To: info-performer++at++sgi.com
Subject: HELP!!!!

  
Hi, gurus,

I just experineced a very strange problem:
I try to create 2 geometries:
......

g = (pfGeode *)pfMalloc(sizeof(pfGeode),pfGetSharedArena());

g1 = (pfGeoSet *)pfMalloc(sizeof(pfGeoSet),pfGetSharedArena());
g2 = (pfGeoSet *)pfMalloc(sizeof(pfGeoSet),pfGetSharedArena());
//these 3 sentence in constructor

.........
g1 = pfdNewPipe(0.1,0.1,100,pfGetSharedArena());
g2 = pfdNewSphere( 100,pfGetSharedArena());
//in a function
......then set color, looks good......
g->addGSet(g1); //program crashes here
g->addGSet(g2);
.........
did I do something wrong ?????? Thanks!

-- 

Song Li

VRAC(Virtual Reality Application Center),Iowa State University

Email: lisong++at++vrac.iastate.edu

Homepage: http://www.vrac.iastate.edu/~lisong <http://www.vrac.iastate.edu/~lisong>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Nov 10 2001 - 13:57:26 PST

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