Re: win32 and win98 and resources

new topic     » topic index » view thread      » older message » newer message

Hello!

Thanks, Mr. Powell, that was some very enlightening information!

Derek, one of the links on the URL he supplied was to this page:
http://www.windows-help.net/techfiles/win-resources.html

Roughly halfway down the page, there is a chart showing the Resource limits
for 3.1, 9.x, and NT.  According to this chart, there are definite limits
Window/Menu handles, logical and installed fonts, and device contexts (among
others).  However, there are no limits for NT, and therefore, by extension
XP.  Fonts and window handles were among the big issues with win32lib in ME,
and it is those issues that I haven't had a problem with in XP.

Is there any mechanism in which we could possibly log every font or dc
object that is created, and every font or dc object that is freed?  I have a
sneaking suspicion that there is a small bit of code that allocates a small
piece of resource a big number of times, but never frees it.  If the code is
doing it in ME, then it is doing it in XP too, but XP apparently can take
the abuse.

You've probably already thought of that, and if you have, I apologize.  Just
doing what I can.  :)

Travis Beaty
Osage, Iowa.


----- Original Message ----- 
From: <munchr at mac.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, August 02, 2003 1:41 PM
Subject: Re: win32 and win98 and resources


>
>
> Also found another good discussion on low resources at:
> http://www.experts-exchange.com/Operating_Systems/WinME/Q_20625410.html
>
> One nice quote from that site is this:
>
> "As you open more applications, each one uses the resources in the
> heaps, leaving a smaller percentage of the resources available. Since
> the User and GDI heap sizes are fixed, system resources may become
> low even if a large amount of RAM is installed on the computer.
> Eventually, resources can become so low that Windows cannot perform
> the functions applications request of it, like displaying dialog boxes or
> toolbar icons, and may behave erratically. Fonts may be substituted,
> graphics may become distorted, or you may not be able to switch from
> one application to another. Windows may return General Protection
> Fault errors in Gdi or User when it can't complete a task. Other symptoms
> of low resources include a change in screen color, sluggish mouse
> movement, unusually slow screen draw, or Windows unexpectedly
> closing or freezing."
>
> James Powell

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu