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
Problem with Dialog, memory?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Hello Antonio,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,
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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
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