Portugal
Asked — Edited

Camera Control Error: System.Nullreferenceexception:

@DJ 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

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

PRO
Synthiam
#1  

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.

Portugal
#2  

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.

PRO
Synthiam
#3  

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