|
From: Dair G. <da...@re...> - 2004-10-08 17:59:26
|
Peter Michelsen wrote: >The question is should we have this kind of checks elsewhere when =20 >creating instanceData? That shader object should always have a valid (i.e., non-NULL) instance data pointer; if it doesn't then it's not a valid object. >Or is there a problem in my code that allows this problem in the first =20 >place? I would look at the shader object in question, see if you can track its instance data from when it's created until you hit this point. When E3Shader_RegisterClass registers the texture shader class it asks for sizeof(TQ3TextureObject) bytes of instance data. When E3TextureShader_New allocates the object it should either get that instance data or fail - so either it's failing at that point, or someone tramples it later on. >If you would like a copy of the file I can place it on ftp.( it is a =20 >sample 3DMF file from apple called "57 Chevy" ). I did not have any =20 >problems opening the file in geomtest. Was GeomTest using the same version of Quesa (the Microspot flavour, which did have some instance data changes) or the CVS version? -dair ___________________________________________________ mailto:dair+refnum.com http://www.refnum.com/ |