stereolabs / zed-csharp-api

C# API for the ZED SDK
MIT License
10 stars 3 forks source link

Depth mode - System.AccessViolationException #16

Closed LudoTexx closed 3 years ago

LudoTexx commented 3 years ago

Hello,

i dont understand why i get this error when i try to use depth.

I got this error : System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

In this line : camAR.RetrieveMeasure(depth, MEASURE.DEPTH, MEM.CPU, res);

Did you have any clue for where this error come from?

Thank you

LudoTexx commented 3 years ago

Forgot to call :

depth.Create(res, MAT_TYPE.MAT_8U_C4, MEM.CPU);

Sorry for that.