assimp / assimp-net

Automatically exported from code.google.com/p/assimp-net
191 stars 82 forks source link

AccessViolationException with latest assimp version #39

Open agerrius opened 6 years ago

agerrius commented 6 years ago

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 commented 6 years ago

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.