HMG 3.1.1

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.1.1

Post by srvet_claudio »

gfilatov wrote: There is a GDI bitmap resources leak in the current GdiPlus usage.

We have 1(one) unreleased bitmap resource at the each step of iteration (tested via GDIView utility from http://www.nirsoft.net/) :roll:
Hi Grigory.

Yes, you are right.
When loading PNG images increases the handles of Bitmap (only the PNG images are loaded with GDI+).

Apparently the problem is in the line (source/c_image.c):

Code: Select all

GdipCreateHBITMAPFromBitmap (pGpBitmap, &hBitmap, BkColor);
In this line is where the handles are duplicates.

I will investigate the problem and see how I can solve.
Any help will be very welcome.

Best Regards,
Claudio.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

Re: HMG 3.1.1

Post by meneale »

:D Hey HMG, i would know if someone solved the problem with Unicode and RTF control :?:
I tried the HMG 3.1.1 patches, some code editing and the HMG 3.1.2 version, but wasn't fixed :(
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: HMG 3.1.1

Post by Carlos Britos »

HI
In the hmg 311 patch 2
the HMG_PadL() and HMG_PadR() seems to be inverted the behaviour

Code: Select all

   FUNCTION HMG_PADL (xValue, nLen, cFillChar)
          ...
                cPadText := cText + REPLICATE (cFillChar, nSize)
          ...   
   RETURN cPadText

If I'm not wrong should be 

                cPadText := REPLICATE (cFillChar, nSize) + cText  

and the same for 

   FUNCTION HMG_PADR (xValue, nLen, cFillChar)
       ...
                cPadText := REPLICATE (cFillChar, nSize) + cText
       ...
   RETURN cPadText
                cPadText :=  cText + REPLICATE (cFillChar, nSize)
Regards/Saludos, Carlos (bcd12a)
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.1.1

Post by srvet_claudio »

Carlos Britos wrote:In the hmg 311 patch 2
the HMG_PadL() and HMG_PadR() seems to be inverted the behaviour
Yes you are right :o , thank Carlos.
Best regards,
Claudio.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply