Page 1 of 1

Export snapshot = 10mb memory gain every time it is run.

Posted: Mon Nov 16, 2020 10:39 am
by Googie85
Hi Guys,

I run the following:

Code: Select all

      export snapshot from rect (the screenrect) to file "c:\Windows\Temp\Test.jpg" as JPEG 
Every time the code is run, it adds 10mb to the Application memory in Task Manager. I have tried different versions of Livecode and I still get the same issue. On some versions it only increases by 2mb. I am using Livecode 7.0 for stability reasons for my App.

Any ideas on how I can curb the memory usage within my App?

Many Thanks,

Googie.

Re: Export snapshot = 10mb memory gain every time it is run.

Posted: Mon Nov 16, 2020 3:46 pm
by FourthWorld
Googie85 wrote:
Mon Nov 16, 2020 10:39 am
I am using Livecode 7.0 for stability reasons for my App.
Respectfully, if your goal is stability using older versions will not help you. Every release contains many fixes, and few if any regressions. The gap between whatever you're using and whatever is the latest is the sum of all things fixed in between.

Since v7 LC has had at least 200 fixes, and many significant optimizations.

It may be that this leak is among the fixes.

Either way, the first question anyone handling a bug report will have is whether the recipe still shows the problem in the most recent version.

Worth checking out...

https://downloads.livecode.com/livecode/