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


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

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-24 17:00 +0100
Organization A noiseless patient Spider
Message-ID <osno3a$2qn$1@dont-email.me> (permalink)
References <osnf4k$q60$1@dont-email.me> <osnnrb$154$1@dont-email.me>

Show all headers | View raw


this line below takes up one GDI object within bbrowser

InvalidateRect(self:Handle(), ptr(_cast, @self:srcCaptionArea), False)


On 24/10/2017 16:56, Martin wrote:
> Found it in some code we inherited to do with column titles
> 
> 1 object lost in redrawing a column title.
> SELF:Redraw(#CAPTION)
> 
> 
> 10 in refreshing the browser.
> SELF:Refresh()
> 
> 
> Will now drop debugs into the bbrowser code to find the leaks
> 
> 
> On 24/10/2017 14:27, Martin wrote:
>> Hello All
>>
>> I am going through a program which is left running over night and 
>> occasionally runs out of GDI resources.
>>
>> I have fixed one 3 object leak as I forgot a ReleaseDC in two very 
>> similar classes.
>>
>> During a load or a refresh I do call ApplicationExec to keep the 
>> screen from freezing, but at one call I lose 1 GDI object and another 
>> 9 GDI objects.
>>
>> I will experiment with removal, but any ideas why it would go up?
>>
>> Thanks
>>
>> Martin
> 

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