I need some help with two issues.
1) I currently have version 8.1.2.1 installed and up till 10 minutes ago it was fine. I commented out a bunch of print statements trying to solve my other issue and I hit compile and it is still compiling. I don't want to crash it. How do I recover from this? I don't want the newest version. Can I go back to one previous to 8.1.2.1 ?
2) I seem to have a thread issue. This seems to have just shown up but I discovered it quite by accident.
My code is a strategy with buttons on chart trader.
The button event handlers only set flags.
In Onbarupdate() the flags are read. It then generates an atmStrategy based on the buttonClick event flag.
Calculate is set to OnBarclose
if I repeatedly button click thru the close of a bar it will generate an error.
"Strategy 'GuiTrader': Error on calling 'OnBarUpdate' method on bar 479: The calling thread cannot access this object because a different thread owns it."
I commented out all the code in the buttonclick event handler but it still generates the error if I repeatedly click while the close of the bar occurs. Any other time during the bar it
does not generate an error if I repeatedly click. that tells me the its happening in OnbarUpdate but the association between OnbarUpdate and the Button has been commented out.
I am befuddled as to how to debug this since I do not have any code in the button yet it only happens while clicking the button.
My editor is still compiling. It must be 30 minutes now. Do I kill it ?
Jerry

Comment