Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11106
| From | Martin <Martin@spam.spam> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: GDI usage going up on ApplciationExecs |
| Date | 2017-10-31 12:00 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ot9ol3$ji2$3@dont-email.me> (permalink) |
| References | <osnf4k$q60$1@dont-email.me> <osnnrb$154$1@dont-email.me> <osno3a$2qn$1@dont-email.me> <03d161dd-55a5-499c-af4a-18f82354ff2f@googlegroups.com> |
It was the trigger not the cause, I had found the leak, but eventually memory usage stablised and did not get worse. In office I would test for an hour, but customers leave it up for a day or more. Anyway still learning programming even after 30 years On 25/10/2017 07:58, Robert van der Hulst wrote: > Martin, > > I seriously doubt that the InvalidateRect is responsible for a GDI loss. > It is most likely caused by code that runs as a result of this API call > The MSDN docs say about the handle: > > A handle to the window whose update region has changed. If this parameter is NULL, the system invalidates and redraws all windows, not just the windows for this application, and sends the WM_ERASEBKGND and WM_NCPAINT messages before the function returns. Setting this parameter to NULL is not recommended. > > So I would look for WM_ERASEBKGND, WM_NCPAINT > > > Robert > >> 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
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