I created an AddOn that adds custom controls to ChartTrader per ChartTab... the way I did this was to create multiple of the same objects and then show/hide them as the user switches back and forth between tabs. I know what I have is neither concise or elegant, but I can open/close charts, open/close tabs, switch tabs, switch workspaces, etc and I'm getting my desired functionality out of it. Except for this error below.
When I go to the Control Center and go to Tools > Options and click OK, I get the "The calling thread cannot access this object because a different thread owns it." message.
This very specifically only happens when I click OK from the Tools>Options window. If I click cancel, there's no error and I don't get errors from opening any other windows/menus anywhere in the app.
My problem is that this exception is not caught by the Visual Studio debugger, I could put break points on every line of my code, it's not executing when this happens, nor is it triggering any of the debugging statements in my code. I can't find a way to trace the source of it.
Does anyone have any recommendations for how to trace the source of this? I'm down to the point where I've started with a blank slate and are adding chunks of code back in one at a time...which sucks obviously...there's 1000+ lines of code.
Comment