Fri, 04/27/2007 - 17:06
Forums:
I just write this line:
GESControl_Writer IgesWriter (Interface_Static::CVal("XSTEP.iges.unit"),Interface_Static::IVal("XSTEP.iges.writebrep.mode"));
I include:
#include
#include
#include
#include
#include
#include
#include
#include
#include
The compilation is OK, but i have a message: null reference exeption in TKIGES.dll
In debug mode, I have this message in the console:
Warning: Interface_Static::CVal: incorrect parameter XSTEP.iges.unit
Warning: Interface_Static::IVal: incorrect parameter XSTEP.iges.writebrep.mode
Une exception non gérée du type 'System.NullReferenceException' s'est produite dans TKIGES.dll
I don't understand.
Is it a missing dll???
Fri, 04/27/2007 - 18:14
just add this line:
IGESControl_Controller::Init();
and it's OK
Fri, 04/27/2007 - 18:17
Sorry, just before the line:
IGESControl_Writer IgesWriter (Interface_Static::CVal("XSTEP.iges.unit"),Interface_Static::IVal("XSTEP.iges.writebrep.mode"));