Page 1 of 1
Problem with Dialog, memory?
Posted: Wed Dec 13, 2006 9:32 am
by Riccardo
In my application after open and close many times dialogs (with many objects tree, btnbmp, txbrowse ecc) happens that the same dialogs are not created and I've to restart the application and the dialogs are well created.
Is due to lack of memory?
How is possible to solve the problem?
XHB & FWH October 2006
Thank you
Riccardo
Posted: Wed Dec 13, 2006 9:51 am
by Antonio Linares
Riccardo,
Do you use bitmaps, fonts, brushes ? (GDI objects)
If yes, how do you manage them ?
Posted: Wed Dec 13, 2006 11:59 am
by Riccardo
We use Fonts and Bitmaps, calling end() method after close the dialog.
We use folder and a lot of TBtnBmp.
Don't use Brushes.
Thank you.
Posted: Wed Dec 13, 2006 12:29 pm
by Antonio Linares
Riccardo,
The problem you describe is a typicall problem when GDI objects are not properly released. Could you provide some samples of your dialogs so we may review their code ? Thanks,
Posted: Wed Dec 13, 2006 1:32 pm
by Taiwan
Antonio Linares wrote:Riccardo,
The problem you describe is a typicall problem when GDI objects are not properly released. Could you provide some samples of your dialogs so we may review their code ? Thanks,
Hello Antonio,
Sometimes I have same as problem.
But my dialog can work, bitmap TSButton's bitmap disappear.
May I send to you my Dialog code?
Regards,
Richard
Posted: Wed Dec 13, 2006 6:18 pm
by Antonio Linares
Richard,
That error happens when you are consuming a lot of GDI resources without properly releasing them. There are several available tools to check the consumed GDI resources:
http://downloads.zdnet.com/download.asp ... cid=212595
Posted: Thu Dec 14, 2006 2:54 am
by Taiwan
Hello Anonio,
Thanks for your help.
I will try to download it.
Richard