NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-16-2007, 05:13 PM   #1
mazachan
Senior Member
 
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Default Drawing objects and memory

If I created a bunch of draw objects with the same name, does ninja trader automatically remove the previous objects from memory or do you have to call the RemoveDrawObject to free up the memory?
mazachan is offline  
Reply With Quote
Old 08-16-2007, 05:38 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

When you add a draw object with the same name I believe it just modifies the previous instance instead of creating a new one so there should be no memory issue.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-16-2007, 06:58 PM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is correct understanding.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Leak? NinjaTrader_Josh Suggestions And Feedback 10 08-06-2007 12:36 PM
Drawing Objects Disappear with Reload NinjaScript Bruce_Medford_OR Charting 5 05-31-2007 09:07 AM
Indicator disappears after Remove All Draw Objects rtrader General Programming 3 04-13-2007 06:23 AM
Positioning of Manually Drawn Objects whitmark Charting 1 03-27-2007 05:59 AM
Memory Buildup Alfred Miscellaneous Support 1 08-08-2006 06:14 AM


All times are GMT -6. The time now is 03:33 PM.