Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

debug array error / object no value

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

    debug array error / object no value

    hi. using 7.23. i have read the faq on debugging already.

    1. I'm getting an error on Object not having a value. Any easy way to find out what object is not getting a value? besides commenting out pieces of code? if the s/w determines that an object has a problem, should be a way of just ID'ing that object

    2010-11-19 07:30:22:453 ERROR: Failed to call method 'Initialize' for strategy 'Jat1108/831a41dcb1fe4014a3f1a062cd6d6124': Object reference not set to an instance of an object.




    2. sometimes an array value is missing or illegal. ditto question. any easy way to find out what array?

    #2
    ssylwester, the only way to figure out which object is not getting a value is to either sprinkle Print() statements throughout your code to narrow it down or to comment out code.

    As for the arrays, there is no simple method to determine which array is missing a value or contains an illegal value.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X