Hi,
first off, thanks for this great sdk.
Im trying to use the camera to track an object and output the values into matlab. For this to work, i need to set several parameters before the matlab simulation starts. Since i need the image from the camera to tune the parameters i devised the following solution:
I start a cofiguration program, that creates a camera instance, shows me the image and allows me to set the parameters.
Then i start the matlab simulation which basically loads a custom dll.
The dll notifies the config program via a named pipe.
The config program destroys the camerainstance and notifies the dll when done.
The dll then tries to create a camerainstance, but fails.
It turns out, that once a process creates a CameraInstance, it needs to be killed before another process can create a CameraInstance, even when the original instance has been destroyed.
With ProcessExplorer i found out, that the SDK creates a Handle, that is not closed when destroying the CameraInstance. Obviously once the process dies, the Handle dies as well. But it prevents me from handing over the interface to another process.
Any idea?
Regards
Martin