Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instantiating Chart Anchors in Class Constructor

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

    Instantiating Chart Anchors in Class Constructor

    Is there any reason why instantiating chart anchors in the class constructor of drawing tools, rather than in the OnStateChange() method would be a bad idea?

    I've developed dozens of drawing tools and have hundreds applied to some charts. Every 2 to 4 months some of them are corrupted when a property of unrelated drawing tools is changed. The corruption is occurring when the edit is applied. It is a difficult problem to track down. My question relates to different approaches that I'm trying to discover the cause of the problem.

    Thanks,
    Henry

    #2
    Hello henry_aclitus,

    Thank you for the post.

    I am not aware of any specific items that would relate to using the constructor for that however I don't know of any example of that to know if that works or not. You could certainly give it a try to see if it resolves the issue you are having.

    I would otherwise need more specific details here on the problem you are seeing, from the information given I am not sure what you are running into to know if moving where you defined the anchors is related or not.

    I look forward to being of further assistance.

    Comment


      #3
      Thanks Jesse. I ended up making a different change to the susceptible drawing tools that might fix the issue. Good to know that there is no harm in moving the instantiation of the chart anchors to the class constructor though.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X