|
SWT/RCP and number of GDI handles (was: Memory currently allocated by SWT?) [message #458656 is a reply to message #458549] |
Mon, 18 July 2005 16:53 |
Eclipse User |
|
|
|
Originally posted by: joerg.von.frantzius.artnology.nospam.com
This is a multi-part message in MIME format.
--------------060201090704050700000908
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Meanwhile I came across the Sleak plugin myself
( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#tools).
For my running RCP application, it shows 99 Colors, Images, Cursors and
Fonts. Procexp, on the other hand, reports 138 GDI handles for my
process. Now I'd have two questions:
1. Do Colors, Images etc. correspond to one GDI handle each? Or more?
2. If they correspond to GDI handles, where does the difference of 39
GDI handles come from? Is that maybe a basic number of GDI handles
that SWT/RCP need to show a window?
Thanks for any hints,
J
|
|
|
Re: SWT/RCP and number of GDI handles [message #458904 is a reply to message #458656] |
Tue, 26 July 2005 02:42 |
Eclipse User |
|
|
|
Originally posted by: qauck.msn.com
Joerg,
Don't know what OS you are using, but under Windows system, Brush, DC,
Pen, Palette, Region, all these are considered as GDI objects.
HTH.
Joerg von Frantzius wrote:
> Meanwhile I came across the Sleak plugin myself
> ( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#tools).
> For my running RCP application, it shows 99 Colors, Images, Cursors and
> Fonts. Procexp, on the other hand, reports 138 GDI handles for my
> process. Now I'd have two questions:
>
> 1. Do Colors, Images etc. correspond to one GDI handle each? Or more?
> 2. If they correspond to GDI handles, where does the difference of 39
> GDI handles come from? Is that maybe a basic number of GDI handles
> that SWT/RCP need to show a window?
>
> Thanks for any hints,
> Jörg.
>
>
> Joerg von Frantzius schrieb:
>
>> Hi,
>>
>> I have a problem of process sizes getting out of control no matter
>> what -Xmx I put as VM arguments. I suspect that to be memory allocated
>> by SWT, as explained in
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250#c4
>>
>> Is there any way of finding out how much memory currently is allocated
>> through SWT?
>>
>> Thanks for any information,
>> Jörg
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03291 seconds