Stephen Joyce {75069} (shj++at++swlgbd.msd.ray.com)
Thu, 7 Oct 93 14:50:04 -0400
I'm having trouble using a switch node. In the constructor of a class
it is created like this:
sw = pfNewSwitch();
dcs1 = pfNewDCS();
pfNodeName(dcs1,"FIRSTMISSILE");
dcs2 = pfNewDCS();
missile1 = LoadFlt("M3DD00065.flt");
missile2 = LoadFlt("kaPOW.flt");
printf("loaded both 65 and kapow files. \n");
pfAddChild(dcs1, missile1);
pfAddChild(dcs2, missile2);
pfAddChild(sw,dcs2);
pfAddChild(sw,dcs1);
pfAddChild(this->dcs[0],sw);
long index, temp2;
pfNode *temp1;
index = 0;
temp1 = pfGetChild(this->dcs[0], index);
temp2 = pfRemoveChild(this->dcs[0], temp1);
However, it crashes at run-time, with this error in the culling process.
I'm not sure why it works occasionally.
Process 1905 (Stealth) Segmentation fault [cull__8pfSwitchFlP8pfCuller, :0xe432b64]
*[cull__8pfSwitchFlP8pfCuller, 0xe432b64] lw v0,0(t6)
(dbx) where
> 0 cull__8pfSwitchFlP8pfCuller(0x145959d0, 0x6, 0x14222e50, 0x3e48c8c9, 0x0, 0x1432b5e0) [0xe432b64]
1 cull__5pfSCSFlP8pfCuller(0x145959d0, 0x6, 0x14222e50, 0x3e48c8c9, 0x29, 0x438130) [0xe431b54]
2 cull__7pfGroupFlP8pfCuller(0x145959d0, 0x6, 0x14222e50, 0x3e48c8c9, 0x0, 0x3edededf) [0xe41612c]
3 cull__7pfGroupFlP8pfCuller(0x145959d0, 0x6, 0x14222e50, 0x3e48c8c9, 0x4, 0x0) [0xe41612c]
Thanks,
Steve Joyce
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:03 PDT