HMG and GDI handles

Moderator: Rathinagiri

Post Reply
User avatar
solvox
Posts: 12
Joined: Fri Sep 03, 2010 12:19 pm
Location: Croatia

HMG and GDI handles

Post 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
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG and GDI handles

Post by Rathinagiri »

I think somebody with the expert knowledge in C can help.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG and GDI handles

Post by esgici »

Ola Alen

Did you look at here :?:

Saludos :)

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
solvox
Posts: 12
Joined: Fri Sep 03, 2010 12:19 pm
Location: Croatia

Re: HMG and GDI handles

Post by solvox »

Thanks Esgici,

yes I read that thread.

Unfortunately this thread ends with "No, I didn´t found a solution. Sorry."
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG and GDI handles

Post 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
Viva INTERNATIONAL HMG :D
User avatar
solvox
Posts: 12
Joined: Fri Sep 03, 2010 12:19 pm
Location: Croatia

Re: HMG and GDI handles

Post 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
Post Reply