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

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 199
Joined: Tue Aug 05, 2014 10:07 am

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

Post by Googie85 » Mon Nov 16, 2020 10:39 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Mon Nov 16, 2020 3:46 pm

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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Windows”