Welcome to Synthiam!

Program robots using technologies created by industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Camera Control Error: System.Nullreferenceexception:

I get this repeating error message when I use object recognition and the smart variable watcher at the same time?


Camera: Camera Control Error: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at SmartVariableWatcher.FormMain.updateVariable(String var, Object val, Int32 index) in C:\My Documents\SVN\Developer - Controls\In Production\Smart Variable Watcher\MY_PROJECT_NAME\FormMain.cs:line 114
at SmartVariableWatcher.FormMain.VariableManager_OnVariableChanged(String variableName, Object value, Int32 index) in C:\My Documents\SVN\Developer - Controls\In Production\Smart Variable Watcher\MY_PROJECT_NAME\FormMain.cs:line 49
at ARC.Scripting.VariableManager.CreateVariableArray[T](String variableName, T[] values)
at ARC.UCForms.FormCameraDevice.e1kjzfBldLE(List`1 )
at ARC.UCForms.FormCameraDevice.hx2jzJhVodF()

Related Hardware Roomba
Related Control Smart Variable Watcher


Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

AI Support Bot
Related Content
The smart variable watcher is the error - not the camera. The smart variable watcher intercepts variable events. While it's useful for debugging, it can cause errors and performance problems when used. I can take a look but there's probably not much I can do. Probably the best idea is to have a smart variable watcher that allows you to select what variables to watch. That way it isn't showing the entire variable stack.
It is not a major problem and it does not interfere as far as I can tell.  The interesting thing is that if I use the normal variable watcher I dont get any errors.
Yah I was gonna say the original watcher probably Won’t give this errors. It’s cause the smart one works differently. I’ll take a look and see anyway. I’m not a fan of errors