Bug report - Compiling PL hangs up MC

Questions about MultiCharts and user contributed studies.
glam_100
Posts: 157
Joined: 14 Jun 2006
Has thanked: 2 times
Been thanked: 4 times

Bug report - Compiling PL hangs up MC

Postby glam_100 » 11 Jun 2008

Hi,

When you have a computationally intensive indicator/signal loaded on a chart and then recompile the indicator/signal code MC would hang up (keep verifying the indicator/signal forever) and the memory would never get released.

The problem can be reproduced by the following code on MC version 3.0.1200.4785:

vars:
count( 0 );

for count = 1 to 10000
begin
TL_New(Date, time, high, date, time, low );
end;


Just load it to a chart with many bars. I loaded it on a chart with TS symbol @ER2.D 5min chart from 5/1/2007 to 6/11/2008. After the indicator is loaded on the chart recompile the PL code above. You will see this error on the output window:

------ Compiled with error(s): ------
The study or related functions in use. Please remove the study from the chart first
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0
The study or related functions in use. Please remove the study from the chart first
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0

The status of the indicator will be "verifying" forever and more important the memory will never get released.

User avatar
TJ
Posts: 6519
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 11 Jun 2008

..
Last edited by TJ on 11 Jun 2008, edited 1 time in total.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Re: Bug report - Compiling PL hangs up MC

Postby Marina Pashkova » 11 Jun 2008

Hi,

When you have a computationally intensive indicator/signal loaded on a chart and then recompile the indicator/signal code MC would hang up (keep verifying the indicator/signal forever) and the memory would never get released.

The problem can be reproduced by the following code on MC version 3.0.1200.4785:

vars:
count( 0 );

for count = 1 to 10000
begin
TL_New(Date, time, high, date, time, low );
end;


Just load it to a chart with many bars. I loaded it on a chart with TS symbol @ER2.D 5min chart from 5/1/2007 to 6/11/2008. After the indicator is loaded on the chart recompile the PL code above. You will see this error on the output window:

------ Compiled with error(s): ------
The study or related functions in use. Please remove the study from the chart first
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0
The study or related functions in use. Please remove the study from the chart first
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0

The status of the indicator will be "verifying" forever and more important the memory will never get released.


The problem is that your code creates 1000 drawings on each bar.

glam_100
Posts: 157
Joined: 14 Jun 2006
Has thanked: 2 times
Been thanked: 4 times

Postby glam_100 » 11 Jun 2008

Hi Marina,

I have code that create about 20 drawings on a bar and still got this problem. It is not unconceivable that ppl would want to draw something like 20 dots on a bar.


Return to “MultiCharts”