Cancel
Showing results for 
Search instead for 
Did you mean: 

Update/"Save as" a JT file avoiding reading the file twice

Valued Contributor
Valued Contributor

HI all,

I'm doing (at least trying) a fun stuff:

Trying to update the .JT file keeping .jt file data in memory to avoid reading the JT file twice. The hierarchy is saved but not the meshes.
Do you know where this behavior cold come from ?

Are greometry info discarded for some reason ?

 

Thanks.

 

I can add additionnal info if needed.

 

N

1 REPLY

Re: Update/"Save as" a JT file avoiding reading the file twice

Valued Contributor
Valued Contributor

Additionnal question on the same subject.

When doing 2 subsequent and delayed JtkCADImporter::import, I get an access violation in a crt free function on opening the second file.

The free comes from jt81.dll (at DLL offset :   0x001e3d5f, version 8.1.8.3)

 

My general approach here is :

user click 1 :

JtkEntityFactory::init();

LoadFile(file1);

JtkEntityFactory::fini();

 

later on in the application

user click 2 :

JtkEntityFactory::init();

LoadFile(file1 or another file); //CRASH here

JtkEntityFactory::fini();

 

I would like to avoid unloading the DLL and load it everytime.

 

Is there a workaround to avoid this crash ?

 

BTW, would it be possible to get the PDB files of the jt SDK please ?