Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

unhandled exception when ComboBox selection change

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

    unhandled exception when ComboBox selection change

    Hi;

    I have developed an indicator that displays a combobox on the chart. It works fine BUT I have only one user that get an unhandled exception when he changes it. What I sprety weird because the code should handle and Print the exception instead of showing a message box like the exception is not managed.
    Note that this user use the 8.1.3.0 64-bit​ version.

    Click image for larger version

Name:	image.png
Views:	91
Size:	20.1 KB
ID:	1300173


    #2
    Hello TradeForge,

    Is the exception from a null object?
    What is the full error message?

    Are you checking the sensCbx is not null before attempting to assign an event handler?
    You should also be checking the TradingSide is not null before attempting to assign this to the selected value.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea;

      It is fixed.
      The problem was about the fact that this user use an indicator called "Chart Scroll" which hooks the chart control on mouse click/move.
      Mine works prefectly, but the exception comes from this other indicator as it doesn't handle custom chart's controls ....
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X