Seg. violation when doing a pfGetCurMtl

New Message Reply Date view Thread view Subject view Author view

John A. Collier (jcollier++at++alexandra.mtl.com)
Sun, 2 Oct 1994 12:55:00 -0400


I am getting a segmentation violation whenever I try to get the current material
type. Here is the code excerpt:

void
updateMyShmem(void)
{ int index;
  extern geoset_list[100];
  extern geoset_index;
  extern gstate_list[100];
  pfGeoState *gstate;
  pfGeoSet *gset;
  pfMaterial *mtl;
  long prim_type;
  long *answer;
  void *arena;

 arena=pfGetSharedArena();

 gset = (pfGeoSet *)geoset_list[0];

 gstate= (pfGeoState *)gstate_list[0];

 pfLoadGState(gstate);
 mtl=pfNewMtl(NULL);
 mtl=pfGetCurMtl(PFMTL_FRONT); <- Seg. Violation here

}

This is probably a really simple problem, but I am rather new to Performer.

Any help would be extremely appreciated. I have checked the sample code in
Performer to no avail.

Thanks,
John

-- 
John A. Collier					e-mail:	jcollier++at++mtl.com
MTL Systems, Inc.				voice:	(513) 426-3111
3481 Dayton-Xenia Rd.				fax:	(513) 426-8301
Dayton, OH 45432-2796

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:50:38 PDT

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