xBimTeam / XbimWindowsUI

The home of XbimXplorer and WPF components for your desktop BIM applications.
Other
247 stars 149 forks source link

VS2017: System.AccessViolationException #125

Open haschulz opened 5 years ago

haschulz commented 5 years ago

Hi,

I downloaded the XbimWindowsUI and compiled it in VS 2017 without changes. With every IFC model I'm getting a System.AccessViolationException at context.CreateContext(worker.ReportProgress, true); in private void OpenAcceptableExtension(object s, DoWorkEventArgs args) in XplorerMainWindow.xaml.cs

Could you please help?

Regards, Harold

andyward commented 4 years ago

Did you resolve this?

ccc21232 commented 4 years ago

i have the same problem,...how to solve?

CBenghi commented 4 years ago

Hi, Can you be more precise about the line where the error occurs? Does it occur with every IFC file or just some? Can you share a stack trace, please?

haschulz commented 4 years ago

I'm not sure how I can be more precise. I think it's line 281 in XplorerMainWindow.xaml.cs. As mentioned it's with every model I tried. The most irritating point is that it's gone. I changed the OS to Win10 and now it's running without problems ?! So I can't provide a stack trace. Maybe ccc21232 is in a position

CBenghi commented 4 years ago

Hello @haschulz,

code-wise are you referring to: https://github.com/xBimTeam/XbimWindowsUI/blob/13bb09ab7543d23a6fee1892e60c250c374150d3/XbimXplorer/XplorerMainWindow.xaml.cs#L281

If so, it could have been a problem with Esent database on Windows7 in the Geometry library.

Does the pre-built setup work for anybody with this issue? You can download it from:

http://www.overarching.it/dload/XbimXplorer5/Setup.exe

Thanks, Claudio