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


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

Re: GDI usage going up on ApplciationExecs

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: GDI usage going up on ApplciationExecs
Date 2017-10-25 12:21 +0200
Message-ID <f5b6utF1rhhU1@mid.individual.net> (permalink)
References <osnf4k$q60$1@dont-email.me> <osnnrb$154$1@dont-email.me> <osno3a$2qn$1@dont-email.me>

Show all headers | View raw


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