Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ownership and crashes.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    Dan
    Attached Files
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    #2
    Hello,

    Please see this thread for whats likely going on: http://www.ninjatrader.com/support/f...ghlight=freeze

    Comment


      #3
      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.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        6 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X