RhinoInside/Unity - ViewCapture.CaptureToBitmap() crash on runtime

Hello Insiders!

I am developping a 3D app that is running RhinoCore under the hood. One of the intended functionalities is to capture the PageView from the rhino document and display the image. However, I am experiencing problems of running the ViewCapture.CaptureToBitmap() command.

Would appretiate any advice.

Miroljub