Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11105

Re: GDI usage going up on ApplciationExecs

From Martin <Martin@spam.spam>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: GDI usage going up on ApplciationExecs
Date 2017-10-31 11:58 +0000
Organization A noiseless patient Spider
Message-ID <ot9ohj$ji2$2@dont-email.me> (permalink)
References <osnf4k$q60$1@dont-email.me> <osnnrb$154$1@dont-email.me> <osno3a$2qn$1@dont-email.me> <f5b6utF1rhhU1@mid.individual.net>

Show all headers | View raw


It wasn't the problem but pointed me to it.

Fixing some pretty well hidden GDI object leaks was a very interesting 
project.

On 25/10/2017 11:21, Karl-Heinz wrote:
> Hi Martin,
> 
>> this line below takes up one GDI object within bbrowser
>>
>> InvalidateRect(self:Handle(), ptr(_cast, @self:srcCaptionArea), False)
> 
> as Robert said:
> 
> InvalidateRect() declares a given rectangle area as invalid and in 
> addition triggers a WM_PAINT msg, so check what´s happening during the 
> paint. To ensure that no longer used VO Objects like bitmaps etc. are 
> cleaned up as soon as possible trigger the GC manually:
> 
> if ! incollect()
>   collectforced()
> 
> endif
> 
> ...
> 
> now check the number of GDI objects in use.
> 
> ...
> 
> regards
> Karl-Heinz

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-24 14:27 +0100
  Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-24 16:56 +0100
    Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-24 17:00 +0100
      Re: GDI usage going up on ApplciationExecs Robert van der Hulst <rjvanderhulst@gmail.com> - 2017-10-24 23:58 -0700
        Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-31 12:00 +0000
      Re: GDI usage going up on ApplciationExecs "Karl-Heinz" <invalid@invalid.invalid> - 2017-10-25 12:21 +0200
        Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-31 11:58 +0000
      Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-25 09:19 +0100
  Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-25 10:54 +0100
    Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-25 12:00 +0100
    Re: GDI usage going up on ApplciationExecs Arne Ortlinghaus <Arne.Ortlinghaus@acs.it> - 2017-10-27 17:05 +0200
      Re: GDI usage going up on ApplciationExecs Martin <Martin@spam.spam> - 2017-10-31 11:57 +0000

csiph-web