Dan
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ownership and crashes.
Collapse
X
-
Ownership and crashes.
One problem I'm having is the simple Draw.TextFixed method. In OnBarUpdate() I am trying to assign alternate colors to a Draw.TextFixed string from some predefined color variables. If I refresh (F5) the chart, 75% of the time I get an ownership error. The other times it works fine. NT8 crashed on me yesterday and twice today when rapidly refreshing the chart to get the indicator to render properly or at all. Once today I un-commented one line of code and F5'ed the chart and it crashed. Attached is some of the error messages from the log including the crash error.
DanTags: None
-
Hello,
Please see this thread for whats likely going on: http://www.ninjatrader.com/support/f...ghlight=freezeBrettNinjaTrader Product Management
-
Hi Brett, I read that thread when it was active. All the brushes that do not change were already frozen. This one brush was defined with the other variables and assigned a new color from one of the frozen brushes as code dictates in OnBarUpdate(). I have now fozen this brush in State.Configure and clone it and change the color of the clone in OnBarUpdate() but I still get the OnRender() error 2/3rd the times I F5 the chart (along with the 'Object reference not set to an instance of an object.' error). Seems it makes no difference.
Comment
-
Ah I see, I just saw the threading issue in the log and thought that was the issue.
To be clear object reference not set and the ownership error likely are two different issues then.
Can you send me a version of the code via skype or brett.barrett [at] ninjatrader [dot] com and I can take a quick look.Last edited by NinjaTrader_Brett; 06-10-2015, 07:46 PM.BrettNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
577 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment