Download MetaTrader 5
To add comments, please log in or register
Write your articles using our editor. It is convenient!
melgibson
113
melgibson 2014.02.27 09:45 

I got this error message: "12 leaked strings left" when I remove my indicator.

What do I do wrong?

Thanks for your help

Alain Verleyen
Moderator
28518
Alain Verleyen 2014.02.27 11:45  
melgibson:

I got this error message: "12 leaked strings left" when I remove my indicator.

What do I do wrong?

Thanks for your help

Can you show the relevant code ?
rod178
276
rod178 2014.05.20 09:29  
angevoyageur:
Can you show the relevant code ?

I too have received a similar Warning Message

egs

121 leaked stings lefft

2 leaked strings left etc etc

The 'reason' is buried' somewhere within 500 lines of code.

Note that I am utilizing numerous string arrays

Any hints on where to look?

Ilyas
1182
Ilyas 2014.05.20 12:20  
Please create a Service Desk request and attach the code necessary for reproducing this behaviour, so that we can check the issue.
Your code will be deleted after the check.

You can send me a private message instead of applying to Service Desk.
rod178
276
rod178 2014.05.21 11:02  
mql5:
Please create a Service Desk request and attach the code necessary for reproducing this behaviour, so that we can check the issue.
Your code will be deleted after the check.

You can send me a private message instead of applying to Service Desk.


I'd be interested to learnt the meaning of the warning message

The code was in Alpha. I have since modified the code and the warning messages have disappeared, for reasons that I am unable to determine.

Audrius
3
Audrius 2014.09.05 13:54  

Hello,

you can dublicate "1 leaked strings left" where custom indicator have a code:

struct   s_lines

{

  string   lineN;

};

s_lines  line[1];

int OnInit()

{

  for (int i=0;i<1;i++)

    //line[i].lineN = StringFormat("as_%s","aaa");

    line[i].lineN = StringConcatenate("as_","aaa");

  return(INIT_SUCCEEDED);

}

ZenTrader
51
ZenTrader 2014.09.19 15:19  

I have the same problem with "leaked strings left"

Im using using structures to allow for database row type arrays. 

//+------------------------------------------------------------------+
//| Structure for storing trendline data                                 |
//+------------------------------------------------------------------+
struct trend
  {
   string            name; 
   double            price1; 
   double            price2;   
   datetime          time1; 
   datetime          time2; 
   int               style;    
   int               thinkness; 
   int               timeframes; 
   color             line_color;
   string            discription;
   string            breakage;
  };
ZenTrader
51
ZenTrader 2014.09.19 15:21  
Im thinking its something to do with ArraySize as to reset the arrays I am using. ArrayResize(array_name,1);
/
To add comments, please log in or register