O2 Core dump

New Message Reply Date view Thread view Subject view Author view

From: Larry Ramey (ramey++at++vrco.com)
Date: 12/10/2001 06:35:25


Hi guys,

This works:

      pfVec3* verts;
      ushort* ilist;

      gSet->getAttrLists(PFGS_COORD3,(void**)&verts,&ilist);
------------------------------------

      This broken:

      pfVec3* verts=NULL;
      ushort** ilist=NULL;

      gSet->getAttrLists(PFGS_COORD3,(void**)&verts,ilist);

-----------------------------------------------

      So as we all know indexing a NULL pointer on an O2 causes a core dump. the
thing is that "ilist" should NOT be getting used because none of our geometry is
indexed. Anyway, I copied the non-NULL setting code out of a Performer example
and it works. It bugs me, but it works.

Can anyone explain exactly why initializing those pointers to NULL cuases an O2
to shake and convulse?

--
"And I won't waste my time fitting in/
Because I don't think contrast is sin" -MillenColen
Larry E. Ramey
Software Engineer
ramey++at++vrco.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Dec 10 2001 - 07:11:41 PST

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