Unhandled exception: Exception has been thrown by the target of an invocation.
and it seems it is coming from this code...
else if (State == State.Realtime)
{
{
if (chartWindow == null)
return;
accountSelector = chartWindow.FindFirst("ChartTraderControlAccountSe lector") as AccountSelector;
accountSelector.SelectionChanged += accountSelectorChanged;
}
this started happening recently...don't know what changed?
from what I remember the AccountSelector object is not instantiated before Stata.Realtime
and if the Dispatcher is not used, there is a thread error
how to fix?
??.

Comment