🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11562

Re: Program hangs under heavy system load

#11562
From: Dmitry Mikhilov
Date: Thu, 05 Feb 2004 07:03
48 lines
3047 bytes
Thanks for the reply. Actually I meant "physical RAM", not all virtual
memory. Maybe I expressed the situation not exactly - my program doesn't
have any reported by CG memory leaks or "poor handling of limit conditions"
and runs perfectly being not minimized to taskbar irrespectively of current
system load.
When I also tested how it works being minimized and launched a lot of "heavy
artillery" - say, several instances of Corel Photo Paint each tuned to
reserve around 300 Mbytes of memory (overall RAM amount on the testing
machine is 512 MBytes) , then after some time I couldn't awaken my program
by clicking on it's icon in windows taskbar - simply no reaction.
The only thing I've noticed was the amount of memory reserved by my program
as it is shown in task manager dropped from 15 megabytes to mere 600
kilobytes as it possibly should be when "swapping it out". I have no idea
why my program can not be "swapped in" and thus restored...

Dmitry.

"BillT" <billtouch_no_spam@att.net> wrote:
news:4021a2c0@newsgroups.borland.com...
> It sounds like a memory leak or poor handling of limit conditions. It
> sounds unsual for a process to eat all of system memory.
>
> Paging (Swapping) shouldn't be an issue beause the kernel gets the real
memory
> it needs from a pool of less used pages. Other pages get swapped out and
the
> soon to be executed pages get swapped in.
>
>
> In article <40042458@newsgroups.borland.com>, dm1@fromru.com says...
> >
> >I ran into strange problem - when I leave my application running in
> >backgound (most of the time it is doing nothing in this case, just
polling
> >email every 15 minutes) and switch to other application(s) which utilize
all
> >the system memory, then after some time usually I can not restore my
> >application anymore by clicking at it's icon on windows taskbar.
> >Usually it consumes approx. 15 MB of RAM (exe itself is 5 megabytes), but
> >when I look at task manager I see that only 600 kbytes are kept in RAM.
> >What can prevent an application from awakening when it is partially moved
to
> >swap file?
> >
> >Dmitry
> >
> >
>
Technical Details
Message-ID: <4021eaf6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40042458@newsgroups.borland.com> <4021a2c0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,86618364f504b0ba
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-04 23:09:22 PST
From: "Dmitry Mikhilov" <dm1@fromru.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40042458@newsgroups.borland.com> <4021a2c0@newsgroups.borland.com>
Subject: Re: Program hangs under heavy system load
Date: Thu, 5 Feb 2004 10:03:15 +0300
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.131.110.226
Message-ID: <4021eaf6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075964662 195.131.110.226 (4 Feb 2004 23:04:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail