Hi Carsten, I think I got it. We tried to read vrml using a filestream, like this:
std::ifstream is(filename.c_str(), std::ios::binary); NodePtr n = VRMLSceneFileType::the().read(is, ".wrl"); Without inlines this works well, but using a filestream directory information necessary for loading inlines are missing. I think that caused the crash. Workaround for us is to use something like this: NodePtr n = SceneFileHandler::the().read(filename.c_str()); Thanks for your support, Michael -------- Original-Nachricht -------- > Datum: Mon, 26 Apr 2010 17:44:51 -0500 > Von: Carsten Neumann <[email protected]> > An: [email protected] > Betreff: Re: [Opensg-users] 1.8 VRML loader crashing > Hello Michael, > > Carsten Neumann wrote: > > Michael Raab wrote: > >> we're trying to load some vrml files that use "inline" sections. > >> Using the OpenSG 1.8 VRML loader, the system crashes during loading > process with Access Violation Exception. A set of test files is attached. > Ideas? > > > > the VS backtraces unfortunately don't show the values of function > > arguments, can you please check what string is passed to > > PathHandler::push_backPath(), does it contain any ";" or perhaps spaces? > > > > I can not reproduce the problem on linux, the file loads and I see all > > three objects. However it looks as if the problem may be in the > > PathHandler which has some platform dependent code. I'll try later today > > on windows. > > hm, using the tutorial program 10loading.cpp on windows (XP 32bit, VS > 9.0 2008) it also loads your example without problems. > Can you try 10loading.cpp and see if that crashes for you too (if you > have not already done so ;) )? > Is there anything unusual [1] in the paths involved, for example do you > have non-ASCII characters in them, do they contain spaces or special > characters? > > Cheers, > Carsten > > > [1] I know spaces and such do not really qualify as 'unusual' in a path > name nowadays... ;) > > ------------------------------------------------------------------------------ > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
