Hi, On Tue, 2005-01-18 at 18:15, Stefan Hackl wrote: > Hi Gerrit > > Thanks for the answer. > > When using this code I get the "syntax error" every time - indepently of > using > threads or the SceneFileHandler anywhere.
yes, there was one line missing, before scanning a file you must initialize the standard VRML prototypes. Adding pFile->createStandardPrototypes(); between the new VRMLFile and the scanFile call should fix this. > I didn't have the time yet to take a deeper look at the code but I tried on > several machines (linux, windows) with 3 different versions (different ages) > of the cvs-opensg, always the same outcome. it should not work everywhere ;-) > Still I found a nice workaround for my problem - since it seemed > vrml-dependent to me, I wrote a "vrml2osb"-converter (based on the > scenefilehandler). My original code works perfectly with .osb-files - so the > SceneFileHandler should be ok with threads I think, but the vrml-parser seems > to have problems. > > Just drop a note if you want to have more informations or the complete code > of > my testapp. no the symptoms are pretty clear ;-). How to fix this for the SceneFileHandler is a different story, I'm still thinking about. regards, gerrit ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
