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


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

Re: Transparent screens and no resources

Newsgroups comp.lang.clipper.visual-objects
Date 2012-09-24 00:39 -0700
References (5 earlier) <ac34ohFgc9gU1@mid.individual.net> <dcZ6s.536591$Ax.116221@fx18.am4> <GmZ6s.4635$lR.2700@fx27.am4> <Ue_6s.178690$WN2.98629@fx28.am4> <4x%6s.343478$5A.275402@fx20.am4>
Message-ID <cba7bff6-e2d3-4272-9f5e-e11c105a642f@googlegroups.com> (permalink)
Subject Re: Transparent screens and no resources
From Mathias <mathias.hakansson@consultec.se>

Show all headers | View raw


Could this tool help you?

http://www.codeproject.com/Articles/150463/LeakMon-Track-Handle-leak-GDI-Leak-and-Memory-Leak


Den fredagen den 21:e september 2012 kl. 17:16:17 UTC+2 skrev Martin:
> Very strange, found a routine which leaks a lot, found a GDI viewer
> 
> 
> 
> GDI Handle      170 to 170
> 
> GetGUIResources 479 to 720
> 
> 
> 
> Fonts, bitmaps, DC, Brushes all return to where they are
> 
> 
> 
> So what are these others, that is puzzling.
> 
> 
> 
> Thanks
> 
> 
> 
> Martin
> 
> 
> 
> On 21/09/2012 14:48, Martin wrote:
> 
> > 2.8 is using more than 2.7 so is growing slower, but still grows, start
> 
> > value is 50something rather than 69
> 
> >
> 
> > On 21/09/2012 13:48, Martin wrote:
> 
> >> I am using quite a few bIcon and bCompoundvalue (bbrowser)
> 
> >>
> 
> >> Are they possible leaks?
> 
> >>
> 
> >> Thanks
> 
> >>
> 
> >> Martin
> 
> >>
> 
> >> On 21/09/2012 13:37, Martin wrote:
> 
> >>> Sitting at the base application (was 69 when we started) 2404.
> 
> >>>
> 
> >>> So what would we need to look at?
> 
> >>>
> 
> >>> Where would the handles be set?
> 
> >>>
> 
> >>> Thanks
> 
> >>>
> 
> >>> Martin
> 
> >>>
> 
> >>> On 21/09/2012 13:26, Karl Wochele wrote:
> 
> >>>> difficult to say...
> 
> >>>>
> 
> >>>> as far as i remember things get really bad if you come near 10000.
> 
> >>>> What you have to observe is, that after opening and closing the same
> 
> >>>> window many times the number must not grow...
> 
> >>>> If it grows, some windows-handles (brushes, pens, bitmaps,...) do not
> 
> >>>> get released and in the end trouble begins.
> 
> >>>>
> 
> >>>> Karl
> 
> >>>>
> 
> >>>> Am 21.09.2012 14:16, schrieb Martin:
> 
> >>>>> OK doing some tests
> 
> >>>>>
> 
> >>>>> Program as we go in
> 
> >>>>>   and login            69
> 
> >>>>>
> 
> >>>>> Resourse monitor      72
> 
> >>>>>
> 
> >>>>> Order Entry          468
> 
> >>>>> exit OE & collect    108
> 
> >>>>>
> 
> >>>>> Optimising a lot - up to 700 or so
> 
> >>>>> exit it & collect    203
> 
> >>>>>
> 
> >>>>> Does this sound right?
> 
> >>>>>
> 
> >>>>> Thanks
> 
> >>>>>
> 
> >>>>> Martin
> 
> >>>>>
> 
> >>>>> On 21/09/2012 13:04, Karl Wochele wrote:
> 
> >>>>>> Windows...
> 
> >>>>>>
> 
> >>>>>> here's the definition
> 
> >>>>>>
> 
> >>>>>> _DLL FUNC GetGuiResources(hProcess AS PTR,uiFlags AS DWORD) AS DWORD
> 
> >>>>>> PASCAL:USER32.GetGuiResources
> 
> >>>>>>
> 
> >>>>>> Am 21.09.2012 13:54, schrieb Martin:
> 
> >>>>>>> Thanks
> 
> >>>>>>>
> 
> >>>>>>> Where does GetGuiResources() come from please?
> 
> >>>>>>>
> 
> >>>>>>> Thanks
> 
> >>>>>>>
> 
> >>>>>>> Martin
> 
> >>>>>>>
> 
> >>>>>>> On 21/09/2012 12:50, Karl Wochele wrote:
> 
> >>>>>>>> GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS)
> 
> >>>>>>>> DEFINE GR_GDIOBJECTS        := 0
> 
> >>>>>>>
> 
> >>>>>
> 
> >>>
> 
> >>
> 
> >

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


Thread

Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 11:55 +0100
  Re: Transparent screens and no resources "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-09-21 11:23 +0000
    Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 12:49 +0100
  Re: Transparent screens and no resources Karl Wochele <kw@ecos-system.de> - 2012-09-21 13:50 +0200
    Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 12:54 +0100
      Re: Transparent screens and no resources Karl Wochele <kw@e©os-system.de> - 2012-09-21 14:04 +0200
        Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 13:13 +0100
        Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 13:16 +0100
          Re: Transparent screens and no resources Karl Wochele <kw@e©os-system.de> - 2012-09-21 14:26 +0200
            Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 13:37 +0100
              Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 13:48 +0100
                Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 14:48 +0100
                Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-21 16:16 +0100
                Re: Transparent screens and no resources Mathias <mathias.hakansson@consultec.se> - 2012-09-24 00:39 -0700
                Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-24 08:58 +0100
                Re: Transparent screens and no resources "richard.townsendrose" <richard.townsendrose@gmail.com> - 2012-09-24 04:38 -0700
                Re: Transparent screens and no resources Martin <spam@spam.spam> - 2012-09-24 15:32 +0100

csiph-web