cart: empty [ Login ]

Exception 'System.Runtime.InteropServices.COMException' when reading DWG file

1 
Mirza
3/25/2018 4:50 PM
I need to compile C# project with 'Target Platform' = x64 (Project Properties->Build). I got this message: An exception of type 'System.Runtime.InteropServices.COMException' occurred in WW.Cad.dll Detailed: Class not registered Last stack line contains DxfOle.OleData.set(.... This error can be reproduced if you open CadLib example "WinFormsViewExampleCS" and just change 'Target Platform' from x86 (or AnyCPU) to x64 and run/debug and try to open dwg drawing which has OLE objects. Please help.
Wout
3/26/2018 5:06 PM
Works ok here (windows 10). I'll try on windows 7 later. Can you attach/send the specific DXF/DWG file? - Wout
Mirza
3/26/2018 8:40 PM
I have Windows 10 too. It works if I run CadLib example project from Release, or if I run it w/o debug. But if I run project in Debug mode, exception stops execution at function DwgReader.Read(filename). This exception also appears in my Managed c++ application. Big problem is that this exception crashes my application even in Release mode (not just Debug), so that's bad situation. It would not be a problem if exception is passed in Release like in CadLib C# project, but Managed C++ with CadLib dlls just crashes.
Wout
3/26/2018 8:43 PM
As usual: I will need test data + code to reproduce the issue. - Wout
1