I have integrated the camera sdk with an c++ websocket server so I can stream the depth coordinates to a HTML page.
This works perfectly.
However I am only interested in the camera information if i have a connected client.
So what I am trying to do is initialize the camera the moment a client connects.
Then terminate the stream if no camera is connected
And then re initialize the stream as soon as I have a connected client again.
The problem is that as soon as I have terminated the astra connection and try to re initialize it I get an exception within VS 2015.
Anyone know how to re initialize the camera stream?