assimp-net icon indicating copy to clipboard operation
assimp-net copied to clipboard

AccessViolationException with latest assimp version

Open agerrius opened this issue 6 years ago • 1 comments

I'm trying to use AssimpNet with the most recent Assimp library, which I just compiled from source code.

Reading an object work fine, but when I try to save an object I get a AccessViolationException:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

It used to work with an Assimp DLL I compiled before in december 2016, so I guess there are some changes in Assimp since then that are not compatible with AssimpNet. Did anybody experience this before?

agerrius avatar Feb 16 '18 21:02 agerrius

I think I found the issue, the aiScene struct has one extra mMetaData entry in the latest assimp build. I'll try to make a fix for this in AssimpNet.

agerrius avatar Feb 17 '18 10:02 agerrius