Power editor locking-memory usage

Questions about MultiCharts and user contributed studies.
jl12
Posts: 197
Joined: 29 Jun 2007
Has thanked: 8 times
Been thanked: 8 times
Contact:

Power editor locking-memory usage

Postby jl12 » 01 Jan 2012

When a signal that is already applied to a chart is edited and reverified power editor usually locks for a few minutes.

Every time I verify The PLEditor memory usage goes up -about 40 mb- but never comes down.

Running optimisations can also cause the power editor to freeze and may add a gig to PlEditor
memory usage.

See processes attachment

After reboot its ok for a while then the problem re-occurs.
Attachments
plmemory.png
plmemory.png (103.13 KiB) Viewed 168 times

User avatar
Henry MultiСharts
Posts: 8507
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2732 times

Re: Power editor locking-memory usage

Postby Henry MultiСharts » 03 Jan 2012

Please try to compile your scripts in “Fast Compilation” mode.
Attachments
Fast Compilation.png
Fast Compilation.png (33.15 KiB) Viewed 162 times
These users thanked the author Henry MultiСharts for the post:
JoshM

User avatar
JoshM
Posts: 2089
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1525 times
Been thanked: 1485 times
Contact:

Re: Power editor locking-memory usage

Postby JoshM » 03 Jan 2012

jl12 wrote:When a signal that is already applied to a chart is edited and reverified power editor usually locks for a few minutes.

Every time I verify The PLEditor memory usage goes up -about 40 mb- but never comes down.

During complication or just after the script is compiled? If it happens after the script is compiled, but while the 'new version' loads, it can also be caused by printing a lot of data to the PowerLanguage Editor output log. That would cause the PLEditor.exe to go "insane"; if you have a coding error in your script (say, an large array sorting on each bar update), you'll see the normal MultiCharts.exe consuming a lot of memory and CPU (Edit: which also seems to happen in your case).
These users thanked the author JoshM for the post (total 2):
jl12TJ

jl12
Posts: 197
Joined: 29 Jun 2007
Has thanked: 8 times
Been thanked: 8 times
Contact:

Re: Power editor locking-memory usage

Postby jl12 » 04 Jan 2012

JoshM
Thanks for the advice there was a print statement buried in the code since removing this the problem has not re-occurred
These users thanked the author jl12 for the post:
JoshM


Return to “MultiCharts”