Page 1 of 1

HMG and GDI handles

Posted: Tue Jul 17, 2012 12:28 pm
by solvox
Hi all,
I have problem with HMG application and GDI handles.

When application runs for some time it start to loose graphical objects on screen.
After some investigation with GDIView tool (http://www.nirsoft.net/utils/gdi_handles.html)
I found that GDI handles are not entirely released.

Please download and try this sample:
http://sus.bbm.hr/gditest.zip

Run program and leave it running for some time.
When counter reach around 10000-12000, application will stop.
I try this on Win7 and XP and various (last included) versions of HMG and HMG extended.

Does anyone know how to correct loosing GDI handles (at least on label (font) and button controls)?

Serious application with many windows and controls will hardly survive one day withous crash.

Any help is much appreciated.

BR
Alen Uzelac

Re: HMG and GDI handles

Posted: Tue Jul 17, 2012 1:00 pm
by Rathinagiri
I think somebody with the expert knowledge in C can help.

Re: HMG and GDI handles

Posted: Tue Jul 17, 2012 1:57 pm
by esgici
Ola Alen

Did you look at here :?:

Saludos :)

--

Esgici

Re: HMG and GDI handles

Posted: Wed Jul 18, 2012 10:43 am
by solvox
Thanks Esgici,

yes I read that thread.

Unfortunately this thread ends with "No, I didn´t found a solution. Sorry."

Re: HMG and GDI handles

Posted: Wed Jul 18, 2012 11:25 am
by esgici
Hi Alen
solvox wrote: Unfortunately this thread ends with "No, I didn´t found a solution. Sorry."
This reply was for "Modal Windows handle problem".

If you read the thread by begin at the end, probably you missed some solutions for the problem you announce; Grigory and Ricci proposed some useful ones.

Sadness was that these solutions was a little partial, no global and required modification on source code of HMG.

If you have already read these details, sorry for this repeat.

Saludos

--

Esgici

Re: HMG and GDI handles

Posted: Thu Jul 19, 2012 7:26 am
by solvox
Hi Esgici,
thanks for reply.
I agree there are some partial solutions.
Also I believe that tweaking registry for GDI handles is not good idea.

In simple sample there is only window and some fonts.
It doesn't run for even 10 minutes and it crashes.

How to use HMG to make POS system with 24/7 working hours?

It look to me like serious problem and I totally agree with rathinagiri
when he said "I think somebody with the expert knowledge in C can help."

I hope that "somebody" is here and reading this messages.

BR
Alen