When using the SDK 5.2.1 in combination with the .NET/c# bindings the following command now returns an sl.ERROR_CODE.INVALID_FUNCTION_PARAMETERS error code where it would work fine with SDK 5.1:
s.Camera.RetrieveImage ( Buf, sl.VIEW.LEFT_BGR );
Then, immediately after the sl_zed64.dll irreparably crashes the whole process with this exception:
`Exception thrown at 0x00007FFDCA5BA80A in ZED_Depth_Sensing.exe: Microsoft C++ exception: std::system_error at memory location 0x000000D4471EF8E0
And this call stack:
```
KernelBase.dll!00007ffdca5ba80a() Unknown
vcruntime140.dll!00007ffda2815277() Unknown
msvcp140.dll!00007ffda2792c96() Unknown
msvcp140.dll!00007ffda2792c41() Unknown
sl_zed64.dll!00007ffc7972a0b9() Unknown
sl_zed64.dll!00007ffc7cf7d90b() Unknown
sl_zed_c.dll!00007ffd9392ed5a() Unknown
```
I am testing using a ZED 2i camera.
It’s fairly ease to reproduce this by modifying the SDK’s ZED_Depth_Sensing sample code as follows:
At line 168 of mainwindow.cs, insert:
var Res = new sl.Resolution ( zedCamera.ImageWidth, zedCamera.ImageHeight );
var Buf = new sl.Mat ();
Buf.Create ( Res, sl.MAT_TYPE.MAT_8U_C3, sl.MEM.CPU );
var Result = zedCamera.RetrieveImage ( Buf, sl.VIEW.LEFT_BGR );
Then run the example using SDK 5.2.1 and witness the error code and subsequent crash.