Error message: Unhandled exception: Object reference not set to an instance of an object. Anyone know how to fix?

Error message: Unhandled exception: Object reference not set to an instance of an object. Anyone know how to fix?

For anyone to help you with this, we will need much more information. “Object reference is not set ot an instance of an object” means the code was trying to access something that doesn’t exist. But…

What code? What are you doing? Are you building an indicator? Building an add-on? Did you install 3rd-party tools or indicators? Etc.

Give us the who, what, when, where, why, how.

Easiest way to find out.. debug with Visual Studio. It’ll break and show you exactly where it broke in Visual Studio. Essentially, you have an object that has not been initialized.

1 Like