assimp / assimp-net

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

AssimpNet: AccessViolationException #36

Closed farhankhwaja closed 7 years ago

farhankhwaja commented 7 years ago

Hi, I was using AssimpNet today and when I was trying to Import .STL file and then export it to an OBJ, i got an AccessViolationException, below is the Exception Message: An unhandled exception of type 'System.AccessViolationException' occurred in AssimpNet.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. But when I use Open3Mod Viewer, I am able to view the STL file with 4 meshes.It also has 4015886 Vertices and 1821446 Triangles.

Below is a screenshot from Open3Mod Viewer: image

and here is what I get after conversion: image

Please help me with this.

farhankhwaja commented 7 years ago

I found the solution for this. It was an issue related to the Arch. i..e x86 or x64. After reading articles over the internet, I found this to be an architecture issue rather than Assimp Issue.