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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -