FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Memory Leak?
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Memory Leak?
Posted: Sat Aug 12, 2006 01:33 AM

Hi.

On a given app, after execution of a few Tprinter previews, all the preview window's controls (first page, next page, prev page, last page, print, exit, etc...) are lost. ie, not visible any more. They are still there and although invisible, you may click in the area where they were supposed to show up and they do their function. Even the ballons show up.

I'm thinking perhaps it is all due to memory leaks. The reason why I suspect this is because all bitmpas that normaly show as part of the printed text (such as the logo) are also gone as well. I first loose the preview window's background. Then the form's logo and any other bitmaps that are supposed to print. And finally, I loose the actual control's bitmaps.

If you exit the app and return it all works well again for a few more prints. Using a share version of FreeRam XP I was able to see available memory drop from 355k to 33k only after about 35 tprinter executions.

How can I find out (debug) what's happening here?

Thank you,

Reinaldo.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Memory Leak?
Posted: Sat Aug 12, 2006 06:40 AM

Reinaldo,

Usually it is a resources leak that takes the app to such situation.

Could you aisle a small and self contained sample of the print that you are doing, to reproduce the error ? Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion