c++ - VTK 7.1.1: vtkX3DExporter exception -
i using vtkx3dexporter export string, there exception when i'm calling getoutputstring().
writing file successful writing string not.
i using vs2017 , building target x64 dll . exe imports dll , tests this:
// ... codes ... exporter->setfilename("d:\\testfolder\\cccccccc.x3d"); exporter->write(); // writes file exporter->writetooutputstringon(); // turns on "writetooutputstring" exporter->getwritetooutputstring(); // returns 1 exporter->getoutputstringlength(); // returns 0 exporter->getoutputstring(); // exception here.
i can't catch exception (i don't know why. used try , catch blocks exe crashes) don't know details.
ok, find answer. should call exporter->update() before trying output string.
Comments
Post a Comment