--EV
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Threading issue
Collapse
X
-
Originally posted by ETFVoyageur View PostI get an exception.
The exception comes from the following line of code. darkBullColor and darkBearColor are both of type System.Windows.Media.SolidColorBrush.
Code:if (isUpTrend) PlotBrushes[rIndicatorPlot.index][0] = darkBullColor; else PlotBrushes[0][0] = darkBearColor;
--EV
P.S. I think it is irrelevant, but rIndicatorPlot.index = 0, and PlotBrushes has 2 entries.
Leave a comment:
-
Threading issue
I get an exception.
An exception of type 'System.InvalidOperationException' occurred in WindowsBase.dll but was not handled in user code
Additional information: The calling thread cannot access this object because a different thread owns it.
Code:if (isUpTrend) PlotBrushes[rIndicatorPlot.index][0] = darkBullColor; else PlotBrushes[0][0] = darkBearColor;
--EV
P.S. I think it is irrelevant, but rIndicatorPlot.index = 0, and PlotBrushes has 2 entries.Last edited by ETFVoyageur; 08-18-2015, 04:55 AM.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
11 responses
39 views
0 likes
|
Last Post Today, 11:40 AM | ||
Started by FrazMann, Today, 11:21 AM
|
0 responses
5 views
0 likes
|
Last Post
by FrazMann
Today, 11:21 AM
|
||
Started by geddyisodin, Yesterday, 05:20 AM
|
8 responses
52 views
0 likes
|
Last Post Today, 10:45 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
4 responses
26 views
0 likes
|
Last Post Today, 10:47 AM | ||
Started by George21, Today, 10:07 AM
|
1 response
22 views
0 likes
|
Last Post Today, 10:43 AM |
Leave a comment: