Hi,

On Mon, 2004-10-11 at 16:46, Gerrit Voss wrote:
> Hi,
> 
> On Fri, 2004-10-08 at 20:48, Désirée Görrisen wrote:
> > Hi,
> > I have a very strange problem reading a wrl file (using 
> > Scenefilehandler::the().read ).
> > On XP platforms the wrl file is loaded correctly on Win 2000 platforms 
> > it crashes.  I will try to attach the file - ist a zipped vrml file, but 
> > I will rename it ot an extension zzz.
> > 
> > I checked all possible variants of the read method (streams vs. files 
> > and third parameter NULL vs. using two parameters) makes no difference....
> > 
> 
> basically it crashes in createConvexPrimitives due to some memory curruption,
> so different reading methods don't help ;-). I'll try to narrow it down.

ok, the problem is : the gluCallbacks were defined without
OSG_APIENTRY, which resulted in corrupted memory. I commited the fix (so
it should be available soon). If it is urgent and you have a self
compiled version go to OSGGeoFunctions.cpp and add OSG_APIENTRY to
all gluCallbacks (they are just in from of createConvexPrimitives).
The first one should look like this :

void OSG_APIENTRY gluTessEdgeFlagCB(GLboolean /*flag*/)
{
.
.
}

the others follow.

regards,
  gerrit

PS: I have no clue why it works on XP but not on 2000 and why it did not
    hit us earlier ;-)




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to