Items with no label
3338 Discussions

Running C# samples

KMeir
Beginner
2,313 Views

i have downloaded the source files from github and was able to build all tools and tutorial programs.

Next, I wanted to build and the c# samples. They seem to build fine, but when I run them, they com up with an error.

Any suggestion on how to approach this?

 

Platform: Win 10 x64 - Visual Studio 2017

'cs-tutorial-1-depth.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'cs-tutorial-1-depth.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\realsense\sdk2\Debug\cs-tutorial-1-depth.exe'. Symbols loaded. 'cs-tutorial-1-depth.exe' (CLR v4.0.30319: cs-tutorial-1-depth.exe): Loaded 'D:\realsense\sdk2\Debug\Intel.RealSensed.dll'. Symbols loaded. 'cs-tutorial-1-depth.exe' (CLR v4.0.30319: cs-tutorial-1-depth.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'cs-tutorial-1-depth.exe' (CLR v4.0.30319: cs-tutorial-1-depth.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'cs-tutorial-1-depth.exe' (CLR v4.0.30319: cs-tutorial-1-depth.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols. Exception thrown: 'System.DllNotFoundException' in Intel.RealSensed.dll Exception thrown: 'System.TypeInitializationException' in cs-tutorial-1-depth.exe An unhandled exception of type 'System.TypeInitializationException' occurred in cs-tutorial-1-depth.exe De type-initialisatiefunctie voor Intel.RealSense.Context heeft een uitzondering veroorzaakt.   'cs-tutorial-1-depth.exe' (CLR v4.0.30319: cs-tutorial-1-depth.exe): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Remote Debugger\x64\Runtime\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

screenshot.png

 

 

0 Kudos
2 Replies
KMeir
Beginner
1,907 Views

Solved by copying pre-build binairy files from the SDK2.0 into the debug folder.

0 Kudos
MartyG
Honored Contributor III
1,907 Views

I'm very glad you were able to find a solution. Good luck with your explorations of RealSense!

0 Kudos
Reply