This API seems to release any unused pages from memory.
Yes but also the used for this reason must be done carefully for optimal
performance.
This is one of those cases where is recommended because there will be many
unused.
--
Xavi
Randy Portnoff escribió:
Hi Xavi,
Yup - That worked - Thanks!
So, it appears that the memory was not actually in use but was
"reserved" for the app by Windows. This API seems to release any unused
pages from memory.
Regards,
Randy.
At 12:46 PM 6/5/2009, you wrote:
Randy,
Try this .-
Procedure Main()
? 'How memory ?'
Wait
FreeTaskManagerMemory()
? 'And now ?'
Wait
return
#pragma BEGINDUMP
#include <windows.h>
HB_FUNC( FREETASKMANAGERMEMORY )
{
SetProcessWorkingSetSize( GetCurrentProcess(), -1, -1 );
}
#pragma ENDDUMP
--
Xavi
Randy Portnoff escribió:
Hi all,
I am creating Excel spreadsheets using HBOLE (in the stable build
v1.0.1) - It seems that the memory consumed by the application is
quite extensive (eg. 70 MB) and continues to climb (as indicated in
the task manager) - The memory does not decrease even after Excel is
closed. However, the memory is reclaimed when the application exits.
Also, I noticed that a new EXCEL.EXE is spawned each time a new
spreadsheet is created and is not closed (even when excel is closed)
until the application exits.
Is there a way to free these resources while the application is still
active?
TIA.
Regards,
Randy.
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour