Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4120 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2012-09-21 11:55 +0100 |
| Last post | 2012-09-24 15:32 +0100 |
| Articles | 17 — 6 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 11:55 +0100 |
| Subject | Transparent screens and no resources |
| Message-ID | <6IX6s.521110$%s2.347270@fx17.am4> |
As you may know we have had issues with various builds - appearing to be resources. Program doesn't respond, transparent screens, screens sitting there for ages before responding, and so on. This is our init for the executable SetMaxDynSize( 0xC000000 ) DynSize(512) we have also tried SetMaxDynSize( 0xA000000 ) DynSize(512) SetMaxDynSize( 0x8000000 ) DynSize(512) SetMaxDynSize( 0x8000000 ) DynSize(256) Executable is about 31MB Does anyone have any ideas what we can try next. Goes wrong on site after a few hour heavy use. VO2.8 SP3 no different to SP2 VO2.7 doesn't get the same screen issue as often, but gets a lot more errors in reportpro. Thanks Martin
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-09-21 11:23 +0000 |
| Message-ID | <ac311cFfgseU1@mid.individual.net> |
| In reply to | #4120 |
Hi Martin, > As you may know we have had issues with various builds - appearing to > be resources. Program doesn't respond, transparent screens, screens > sitting there for ages before responding, and so on. I suspect you are not releasing ressources to the OS. Do you see the memory in the taskmanager increase over time? Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 12:49 +0100 |
| Message-ID | <2vY6s.177826$WN2.65674@fx28.am4> |
| In reply to | #4123 |
We would heve to start it up - this is at a few customers. How would we be able to grab resources and not release them? The one site which runs well uses uses a mix of 2X, and Windows 7 clients. Goes wrong on XP or Windows 7 so this is confusing. Thanks Martin On 21/09/2012 12:23, Wolfgang Riedmann wrote: > Hi Martin, > >> As you may know we have had issues with various builds - appearing to >> be resources. Program doesn't respond, transparent screens, screens >> sitting there for ages before responding, and so on. > > I suspect you are not releasing ressources to the OS. > > Do you see the memory in the taskmanager increase over time? > > Wolfgang >
[toc] | [prev] | [next] | [standalone]
| From | Karl Wochele <kw@ecos-system.de> |
|---|---|
| Date | 2012-09-21 13:50 +0200 |
| Message-ID | <ac32kmFfrarU1@mid.individual.net> |
| In reply to | #4120 |
Hi Martin, it seems to me as if you don't destroy GDI-Objects. You might use GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS) DEFINE GR_GDIOBJECTS := 0 to observe, how and where the amount of GDI-Objects grow in your application. HTH, Karl Am 21.09.2012 12:55, schrieb Martin: > As you may know we have had issues with various builds - appearing to be > resources. Program doesn't respond, transparent screens, screens sitting > there for ages before responding, and so on. > > This is our init for the executable > > SetMaxDynSize( 0xC000000 ) > DynSize(512) > > we have also tried > SetMaxDynSize( 0xA000000 ) > DynSize(512) > > SetMaxDynSize( 0x8000000 ) > DynSize(512) > > SetMaxDynSize( 0x8000000 ) > DynSize(256) > > Executable is about 31MB > > Does anyone have any ideas what we can try next. > > Goes wrong on site after a few hour heavy use. > VO2.8 SP3 no different to SP2 > > VO2.7 doesn't get the same screen issue as often, but gets a lot more > errors in reportpro. > > Thanks > > Martin
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 12:54 +0100 |
| Message-ID | <KzY6s.177903$WN2.164052@fx28.am4> |
| In reply to | #4126 |
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
[toc] | [prev] | [next] | [standalone]
| From | Karl Wochele <kw@e©os-system.de> |
|---|---|
| Date | 2012-09-21 14:04 +0200 |
| Message-ID | <ac33djFg1jlU1@mid.individual.net> |
| In reply to | #4127 |
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 >
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 13:13 +0100 |
| Message-ID | <pRY6s.215570$lV1.67266@fx05.am4> |
| In reply to | #4128 |
Great that is it 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 >>
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 13:16 +0100 |
| Message-ID | <QUY6s.215571$lV1.149798@fx05.am4> |
| In reply to | #4128 |
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 >>
[toc] | [prev] | [next] | [standalone]
| From | Karl Wochele <kw@e©os-system.de> |
|---|---|
| Date | 2012-09-21 14:26 +0200 |
| Message-ID | <ac34ohFgc9gU1@mid.individual.net> |
| In reply to | #4130 |
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 >>> >
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 13:37 +0100 |
| Message-ID | <dcZ6s.536591$Ax.116221@fx18.am4> |
| In reply to | #4131 |
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 >>>> >>
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 13:48 +0100 |
| Message-ID | <GmZ6s.4635$lR.2700@fx27.am4> |
| In reply to | #4132 |
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 >>>>> >>> >
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 14:48 +0100 |
| Message-ID | <Ue_6s.178690$WN2.98629@fx28.am4> |
| In reply to | #4133 |
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 >>>>>> >>>> >> >
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-21 16:16 +0100 |
| Message-ID | <4x%6s.343478$5A.275402@fx20.am4> |
| In reply to | #4134 |
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 >>>>>>> >>>>> >>> >> >
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2012-09-24 00:39 -0700 |
| Message-ID | <cba7bff6-e2d3-4272-9f5e-e11c105a642f@googlegroups.com> |
| In reply to | #4135 |
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 > > >>>>>>> > > >>>>> > > >>> > > >> > > >
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-24 08:58 +0100 |
| Message-ID | <AoU7s.307827$Zn3.16984@fx28.am4> |
| In reply to | #4144 |
Well I have isolated one leak to a couple of hundred lines, no screen display either!!!! On 24/09/2012 08:39, Mathias wrote: > 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 >> >>>>>>>>> >> >>>>>>> >> >>>>> >> >>>> >> >>> >
[toc] | [prev] | [next] | [standalone]
| From | "richard.townsendrose" <richard.townsendrose@gmail.com> |
|---|---|
| Date | 2012-09-24 04:38 -0700 |
| Message-ID | <73054b45-2751-478f-839f-37fcb57ab825@k20g2000vbj.googlegroups.com> |
| In reply to | #4145 |
Martin please replace the code in the timer method METHOD Timer() CLASS FloatWin // SELF:oDCGDI:Value :=Memory(MEMORY_WINDOWS_GDIRESOURCES) SELF:oDCGDI:Value :=NTrim(GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS)) // rgtr 240912 seems there is a bug in the sp2 as the original line always returns 0 i am checking all classes that do not inherit from anything - i think that they should all inherit from the VObject class. there may be a bug in lib 40 somewhere ??? richard
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-09-24 15:32 +0100 |
| Message-ID | <5a_7s.199280$Sz6.141013@fx27.am4> |
| In reply to | #4144 |
Animated cursor was the issue now fixed, thanks everyone On 24/09/2012 08:39, Mathias wrote: > 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 >> >>>>>>>>> >> >>>>>>> >> >>>>> >> >>>> >> >>> >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web