Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Detailed information on the GDI resources

- - - - -

  • Please log in to reply
15 replies to this topic

#1
egrabrych

egrabrych

    Junior

  • Member
  • Pip
  • 92 posts
  • Joined 27-May 10
  • OS:98SE
  • Country: Country Flag

Donator

In Windows 98, it is possible to monitor the amount of the GDI resources in use, using the Resource Meter system tool. The problem is, this tool doesn’t provide information about what (which processes, files, programs) consumes the GDI resources and to what extent. It only provides a statistic. One program that I know – Usage Monitor – also doesn’t provide the detailed information in Windows 98 (despite even displaying a column intended for it). Does anyone know a program/tool which would provide the detailed information when used in Windows 98?




How to remove advertisement from MSFN

#2
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 800 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

AFAIK there is no way to do that directly  as the GDI heaps don't store information as to which process owns which used resource if i am not mistaken.

 

The only way you might know is by running a tool such as Bear and check what it reports before and after running a program.



#3
egrabrych

egrabrych

    Junior

  • Member
  • Pip
  • 92 posts
  • Joined 27-May 10
  • OS:98SE
  • Country: Country Flag

Donator

That’s too bad. :(  I had hopes for something like constant monitoring of the allocation of GDI resources, the same way Process Explorer enables to do with the allocation of CPU resources. Now I understand why there is an empty column in Usage Monitor’s report.

 

Thanks for your answer!



#4
Nomen

Nomen

    Member

  • Member
  • PipPip
  • 256 posts
  • Joined 07-July 12
  • OS:98SE
  • Country: Country Flag
Norton Utilities System Information (the one I have is SI32.EXE version 15.03.0.36 from Norton System Works 2002) will show some information about GDI resources currently in use.

#5
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,350 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

There used to be an old package called 'Leaks' if I'm not mistaken, which can display GDI usage before and after running a certain application.

It contains 'GDI Usage' and 'Menu Usage' - two separate executables. The first one says 'Should help you find GDI leaks / by Christophe' in the 'About' box (right-click the application titlebar -> About GDIUsage).

It does not provide real-time statistics, however it may help finding out which application uses many GDI object, what type of objects and if there are any leaks in it, by clicking 'Compare!' after the applicaiton is closed.

 

Hopefully someone here has a working download link at hand, otherwise I could try to find the archive on my drives/CDs and put it on my cloud.



#6
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,169 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
Maybe "bear" would do :unsure:

http://thesz.diecru....ontent/bear.php

jaclaz

#7
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,350 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

I know Bear and it doesn't do what GDIUsage does. It actually lists the elements by handle and displays the loaded bitmaps, brushes, fonts, memory DCs, palettes, pens and regions when selected in the list. This allows the user to recognize the elements and tell whom they belong to. This is gold, compared to Bear. ;)

 

Eventually I found the Leaks package. But it's not in its rightful place anymore. The Wayback Machine used to host a viable page with an active download link, but I guess the "good guys" at M$ got to them - no download link on the archived page copies. See here, for example.

 

There is an alternative location where the package can be found, but after downloading and also searching my 98SE machine, I realized it always was the code, not the executables. Looking in my freeware code folder, I found the three projects - I had compiled them myself on April 9th 2012.

 

Now, since the code has been freely available some time ago at MSDN and I compiled it myself, I guess it wouldn't be a problem to share the executables, would it? If nobody says otherwise, I'll upload them to my cloud and link them here somewhere.

 

EDIT: Uploaded executables and original sources in the Leaks folder (see my signature). Let me know if there's any problem.


Edited by Drugwash, 20 February 2015 - 09:04 PM.


#8
egrabrych

egrabrych

    Junior

  • Member
  • Pip
  • 92 posts
  • Joined 27-May 10
  • OS:98SE
  • Country: Country Flag

Donator

I apologize for not responding for so long.

 

So, to put things in order:

  • Bear program (jaclaz – thanks for the link :)) does indeed display the list of elements  that Drugwash wrote about - but in Windows XP:

Attached File  bear_XP_.jpg   43.2KB   0 downloads

 

in Windows 98 it only provides synthetic numerical data:

 

Attached File  bear_98_.jpg   19.31KB   0 downloads

 

– as it is said on this site: http://thesz.diecru....ontent/bear.php

It is the case both when it comes to the current 1.52 version of Bear and to the version 1.42 which is  available through Wayback Machine (and 1.14, as shown on the screenshots).

 

 from the MSDN website: https://msdn.microso...e/cc188782.aspx

However, I downloaded the content of Leaks folder from Drugwash (thanks :)). GDI Usage (one of the three applications in this folder), after clicking [Details], shows in a new window individual GDI objects:

 

Attached File  Details_.jpg   31.28KB   0 downloads

 

                                   due to their often characteristic appearance, you can guess where they come from.

 

GDI Usage only works under Windows 9x (for Windows 2000 and XP there is a different  application, available in the same folder: GDI Count).

 

  • For Windows 98, I think that GDI Usage is more appropriate than Bear. It may provide only incomplete and unspecified information, but in most cases this should be enough to identify the cause of losing free GDI resources. A different matter is what to do with the problem once we have identified it using GDI Usage (usually, it concerns a program we have no influence on) – but this matter goes beyond the thread’s subject. Once again, I thank everyone for help and advice :yes:.


#9
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,169 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Good. :)

 

While you are at it, check also this "Veign's Usage Monitor".

 

Here is an old version:

https://web.archive....n.php?appid=110

 

Latest is possibly this one:

https://web.archive....n.php?appid=110

 

 

jaclaz



#10
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 800 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

I have reuploaded  the super hard to find GDIView from tihiy to add one more to the pile: http://www.datafilehost.com/d/1ea1abfc


Edited by loblo, Today, 09:41 AM.


#11
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,169 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

I have reuploaded  the super hard to find GDIView from tihiy to add one more to the pile: http://www.datafilehost.com/d/1ea1abfc

Good :), and I am attaching it to this post, so that it doesn't get lost.

jaclaz

Attached Files

  • Attached File  G.7z   6.19KB   0 downloads


#12
Nomen

Nomen

    Member

  • Member
  • PipPip
  • 256 posts
  • Joined 07-July 12
  • OS:98SE
  • Country: Country Flag
I don't know if the info displayed by Norton System Information is what is being sought here, but this is what I see. Under Memory General Information tells me I have 81% free 16-bit User and 93% free 16-bit GDI:
Attached File  si32-1.gif   8.15KB   0 downloads
If I expand 16-bit system applications, I have only 2 of those (mmtask and msgsrv32). If I fully expand msgsrv32, this is what I get:
Attached File  si32-2.gif   10.33KB   0 downloads
If I expand the 16-bit libraries, there are many entries. If I expand the first one (avicap) I get this:
Attached File  si32-3.gif   10.86KB   0 downloads
If I expand 16-bit applications, I have 3 items. If I fully expand the first one, I get:
Attached File  si32-4.gif   11.16KB   0 downloads
If I expand 16-bit system libraries, there are about 2-dozen of them. If I expand the first one (comm) I get this:
Attached File  si32-5.gif   10.88KB   0 downloads

I assume that it's the 16-bit items that cause GDI resource issues for win-98. ?

#13
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 800 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

Yes, it's the small size, along with leaks, of 16bit resource segments (USER and GDI) that are the reason resources get depleted. It's been discussed quite a bit a while back. Try to look into old topics for more information. Searching for "heap expander" would probably yeld. Having Revolution Pack installed can mitigate the GDI depetion issues to some degree as it's got a built-in clean-up routine for those, not so much for the USER resources unfortunately.


Edited by loblo, Today, 11:43 AM.


#14
egrabrych

egrabrych

    Junior

  • Member
  • Pip
  • 92 posts
  • Joined 27-May 10
  • OS:98SE
  • Country: Country Flag

Donator

While you are at it, check also this "Veign's Usage Monitor".

 

Here is an old version:

https://web.archive....n.php?appid=110

 

One program that I know – Usage Monitoralso doesn’t provide the detailed information in Windows 98 (despite even displaying a column intended for it).

 

This also applies to the older version Usage Monitor.

 

 

 

I have reuploaded  the super hard to find GDIView from tihiy to add one more to the pile: http://www.datafilehost.com/d/1ea1abfc

 

Good :), and I am attaching it to this post, so that it doesn't get lost.

jaclaz

 

It works similarly to GDI Usage, but I like less.


Edited by egrabrych, Today, 01:01 PM.


#15
egrabrych

egrabrych

    Junior

  • Member
  • Pip
  • 92 posts
  • Joined 27-May 10
  • OS:98SE
  • Country: Country Flag

Donator

Yes, it's the small size, along with leaks, of 16bit resource segments (USER and GDI) that are the reason resources get depleted. It's been discussed quite a bit a while back. Try to look into old topics for more information. Searching for "heap expander" would probably yeld. Having Revolution Pack installed can mitigate the GDI depetion issues to some degree as it's got a built-in clean-up routine for those, not so much for the USER resources unfortunately.

 

http://www.msfn.org/...-heap-extender/



#16
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,169 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

 

While you are at it, check also this "Veign's Usage Monitor".

 

Here is an old version:

https://web.archive....n.php?appid=110

 

One program that I know – Usage Monitoralso doesn’t provide the detailed information in Windows 98 (despite even displaying a column intended for it).

 

This also applies to the older version Usage Monitor.

 

 

Since I am in an exceptionally good mood today :yes:, I will read the above as:

 

Unfortunately the link you provided is to the same program that I vaguely referenced initially, where I failed to provide any reference to it's Author/source/homepage, nor any other meaningful detail  and that has itself a vague name.

 

 

:whistle:

 

jaclaz






2 user(s) are reading this topic

1 members, 1 guests, 0 anonymous users


    egrabrych