I'm having some trouble getting this to work. I've created a code stage to take a screenshot and store the image on the local drive. When I run the process in debug mode everything works as expected. However, when I run the process from Control Room I get the error: ""Could not execute code stage because exception thrown by code stage: The Handle Is invalid"".
Why do I get this error when running from Control Room, but not when running in Debug-mode?