XbimWindowsUI icon indicating copy to clipboard operation
XbimWindowsUI copied to clipboard

VS2017: System.AccessViolationException

Open haschulz opened this issue 6 years ago • 5 comments

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

haschulz avatar Aug 09 '19 10:08 haschulz

Did you resolve this?

andyward avatar Dec 30 '19 12:12 andyward

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

ccc21232 avatar Feb 29 '20 03:02 ccc21232

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?

CBenghi avatar Feb 29 '20 08:02 CBenghi

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

haschulz avatar Mar 02 '20 18:03 haschulz

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

CBenghi avatar Mar 02 '20 21:03 CBenghi