Software Archive
Read-only legacy content
17061 Discussions

Measure Distance in C#?

jb455
Valued Contributor II
493 Views

Hello,

I'm trying to use the PXCMEnhancedPhotography.MeasureDistance() function to calculate the distance between two points in an application I'm developing in C#, but when I call it I get an "An unhandled exception of type 'System.AccessViolationException' occurred in libpxcclr.cs.dll" exception.

Has anyone else had this problem and managed to get round it, or has anyone gotten the distance measurement function working at all in C#?

Thanks!
James

0 Kudos
3 Replies
Colleen_C_Intel
Employee
493 Views

Are you using the front facing F200 or the little R200?  This module is only for the R200.

0 Kudos
jb455
Valued Contributor II
493 Views

Hi Colleen, thanks for your reply. I am using the R200 when I get this message. Do you know if there are any examples anywhere of this in use in C#? The only sample wit hthe SDK is in C++.

0 Kudos
Colleen_C_Intel
Employee
493 Views

There are no EP C# samples in v5 (R3) release but there are some code lines in the manual for C#
file:///C:/Program%20Files%20(x86)/Intel/RSSDK/doc/HTML/measuredistance_pxcenhancedphotography.html?cachehash=175981213

0 Kudos
Reply