Re: [Harbour] Memory consumption in HBOLE

2009-06-05 Thread Xavi
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 - Tha

Re: [Harbour] Memory consumption in HBOLE

2009-06-05 Thread Randy Portnoff
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

Re: [Harbour] Memory consumption in HBOLE

2009-06-05 Thread Xavi
Randy, Try this .- Procedure Main() ? 'How memory ?' Wait FreeTaskManagerMemory() ? 'And now ?' Wait return #pragma BEGINDUMP #include HB_FUNC( FREETASKMANAGERMEMORY ) { SetProcessWorkingSetSize( GetCurrentProcess(), -1, -1 ); } #pragma ENDDUMP -- Xavi Randy Portnoff es

[Harbour] Memory consumption in HBOLE

2009-06-05 Thread Randy Portnoff
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,