Memory Leak ?

F-IN-BOX for Delphi / Builder C++ / VCL
halloin
Posts: 2
Joined: Tue Jan 10, 2006 3:01 pm

Memory Leak ?

Postby halloin » Tue Jan 10, 2006 3:07 pm

Hi,

I developpe a big swf (version 7) and use FlashPlayerControl (1.1) to show it.

When the swf is running, the RAM is more and more used.

The FlashPlayerControl is dynamicaly created (MyFPC.Create(...);)
But when I want to free the control (and get the RAM back) (MyFPC.Free;) the RAM doesn't come back to the initial level.

Does anyone experienced this ?
Does anyone know how to get back all the RAM used by the ocx ?

Thanks,

Yannick Halloin

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: Memory Leak ?

Postby Softanics » Wed Jan 11, 2006 8:47 am

halloin wrote:Hi,

I developpe a big swf (version 7) and use FlashPlayerControl (1.1) to show it.

When the swf is running, the RAM is more and more used.


This can help:
http://www.flashplayercontrol.com/forum ... c.php?t=59
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

halloin
Posts: 2
Joined: Tue Jan 10, 2006 3:01 pm

Postby halloin » Wed Jan 11, 2006 10:46 am

Hi,

Thanks for the hint !

It seems to be a solution to get back the memory lost by the Flash ocx.

I use the code (Delphi 7 Win32) :
SetProcessWorkingSetSize(GetCurrentProcess(), 4294967295, 4294967295);

The code :
SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1);
doesn't compile in delphi 7.


The flash ocx version 8 seems to work better with memory than the version 7 (the Garbage Collector is new).

I hope that flash 8 + SetProcessWorkingSetSize will be enought to fix my memory problem !

Thanks again,

Yannick


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 23 guests

cron