Hi all,
I'm trying to implement 3D Space Mose support in a c# net forms app.
I'm using VS2019 and W10-64.
After substituting some obsolete libraries i got the Wpf app running (3DxTestNL).
Now I'm trying to set up the same thing with a fresh WinForms app, but it crashes in the Open3DMouse call.
I've reduce the implementation to the INavigation3D interface and the two calls to instantiate the class and open the driver
navigation3D = new Navigation3D(this);
navigation3D.Open3DMouse("Test");
but i get an access violation:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Which things have to be filled to work?
Regards
Wolpi
C# Windows Formas and SDK 4.0 Crashing
Moderator: Moderators
Re: C# Windows Formas and SDK 4.0 Crashing
Hi wolpi,
Perhaps you can share a simplistic VS2019 project that we can use to reproduce the issue?
Perhaps you can share a simplistic VS2019 project that we can use to reproduce the issue?
Nuno Gomes
Re: C# Windows Formas and SDK 4.0 Crashing
Hi ngomes,
please find attached the project.
Hope it will help
regards
wolpi
please find attached the project.
Hope it will help
regards
wolpi
- Attachments
-
- SpaceMouseRaw.zip
- Simple test project
- (255.63 KiB) Downloaded 340 times
Re: C# Windows Formas and SDK 4.0 Crashing
Does your project require "Prefer 32-bit" to be enabled? See project Properties > Build.
Re: C# Windows Formas and SDK 4.0 Crashing
Thanks for the hint, I did not see that.
I just created a new project, and it seems to be checked by default (Microsoft does not trust it's 64 bit applications? )
If I uncheck it, everything seems to run (at least no crash)!
At the moment, my target application is running as 64bit, so it should be no problem.
Some camera drivers I want to use are 32bit only, but I hope I can handle it another way than changing the whole application to 32bit.
Thanks for the quick help!
Wolpi
I just created a new project, and it seems to be checked by default (Microsoft does not trust it's 64 bit applications? )
If I uncheck it, everything seems to run (at least no crash)!
At the moment, my target application is running as 64bit, so it should be no problem.
Some camera drivers I want to use are 32bit only, but I hope I can handle it another way than changing the whole application to 32bit.
Thanks for the quick help!
Wolpi
Re: C# Windows Formas and SDK 4.0 Crashing
We have confirmed this this limitation (unhandled exception running 32-bit processes) to be a bug in the assembly delivered in the driver included in release 10.6.6 and older.
The bug is being tracked as WIN-649 and a fix should be delivered in the next release, expected in the second half of May.
Thank you, @wolpi, for bring this issue to our attention.
The bug is being tracked as WIN-649 and a fix should be delivered in the next release, expected in the second half of May.
Thank you, @wolpi, for bring this issue to our attention.