Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

How to use RealSense in .Net Core Native?

MCalv4
Beginner
1,650 Views

I have a RealSense .Net Core project that works fine.

 

When I generate a single-EXE file with the ILC (https://devblogs.microsoft.com/dotnet/the-net-native-tool-chain/) it fails when creating the config with this error:

 

 System.Exception: Method '[Intel.RealSense]Intel.RealSense.NativeMethods.rs2_create_config(object&)' requires marshalling that is not yet supported by this compiler.

  at Intel.RealSense.NativeMethods.rs2_create_config(Object&) + 0x34

  at Intel.RealSense.Config..ctor() + 0x23

  at RealSenseStreamer.BaseStreamer.FrameGrabber() + 0x5d

 

Is .Net Native supported?

0 Kudos
1 Solution
MartyG
Honored Contributor III
1,428 Views

I could not find a definitive answer through researc, though I did note a case earlier this year where it was reported that a change in the C# wrapper introduced a dependency on the full .NET Framework.

 

https://github.com/IntelRealSense/librealsense/issues/3419

 

If you believe that this is not related to your problem, I would recommend re-posting your question at the RealSense GitHub site, whose RealSense staff may be best equipped to answer your C# question. You can do so by visiting the link below and clicking the 'New Issue' button.

 

https://github.com/IntelRealSense/librealsense/issues

View solution in original post

0 Kudos
2 Replies
MartyG
Honored Contributor III
1,429 Views

I could not find a definitive answer through researc, though I did note a case earlier this year where it was reported that a change in the C# wrapper introduced a dependency on the full .NET Framework.

 

https://github.com/IntelRealSense/librealsense/issues/3419

 

If you believe that this is not related to your problem, I would recommend re-posting your question at the RealSense GitHub site, whose RealSense staff may be best equipped to answer your C# question. You can do so by visiting the link below and clicking the 'New Issue' button.

 

https://github.com/IntelRealSense/librealsense/issues

0 Kudos
MCalv4
Beginner
1,428 Views

Hi Marty,

as usual, thanks for your ultra-prompt reply, I'll repost over on GitHub as you suggest.

😉

0 Kudos
Reply