FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Clase Printer [ Liberar memoria ]
Posts: 144
Joined: Thu Jan 02, 2014 01:49 PM
Clase Printer [ Liberar memoria ]
Posted: Thu Dec 01, 2016 05:33 PM

Buen día
Estoy usando la versión FWH64.1311

El problema que tengo es con la clase TPrinter, al crear cualquier reporte, la clase no libera la memoria utilizada.

Algún tip que puedan compartir ?

Saludos

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Clase Printer [ Liberar memoria ]
Posted: Thu Dec 01, 2016 06:19 PM

Cual és lá version del windows e la memória disponilbe? En windows de 64 bits, el mejor, és que se use 8 Gbs de Ram. Saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Clase Printer [ Liberar memoria ]
Posted: Thu Dec 01, 2016 07:38 PM
Vikthor,

Estás usando algún PEN ó algún FONT que finalmente no liberes ? Usando SetResCheck() puedes comprobar que objetos GDI no han sido liberados:

http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_setresdebug

Si se trata de memoria de Harbour no liberada, prueba a llamar a hb_gcAll()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 144
Joined: Thu Jan 02, 2014 01:49 PM
Re: Clase Printer [ Liberar memoria ]
Posted: Fri Dec 02, 2016 08:05 PM

Antonio

El método BuildListView() de la clase TPrview es el causante del consumo de memoria.
Al cargar las imágenes en TImageList() del arreglo ::oDevice:aMeta

Saludos

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Clase Printer [ Liberar memoria ]
Posted: Sat Dec 03, 2016 11:31 AM

Vikthor,

Me suena que eso ya se arregló en su momento.

Puedes proporcionar un ejemplo simple para probarlo ? gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion