From: "Frank J. Lhota" <NOSPAM.lhota@adarose.com>
Subject: Re: many exceptions cause memory leak?
Date: Fri, 21 Oct 2005 15:38:06 GMT
Date: 2005-10-21T15:38:06+00:00 [thread overview]
Message-ID: <yX76f.7$dW6.4@trndny09> (raw)
In-Reply-To: <djaell$395$1@lc03.rz.uni-jena.de>
Christopher Broeg wrote:
> Hi,
>
> I am running some numeric code in ADA95 using GNAT Academic edition.
> When negative values occur or the integration routine fails exceptions
> are raised and propagated. This works fine.
>
> Surprisingly, the memory usage increases from an initial ~40MB to 100MB
> and more during one day of execution. the memory usage shouldn't
> increase in my eyes. Is it possible that raising many exceptions
> coninues to use up some memory?
>
> thanks for your ideas,
>
> Chris
Which platform is this running on? That could be helpful in determining
the cause of your problem.
On Windows XP, I wrote a GNAT GPL application that raised and handled a
million exception occurrences. This application also does a call to the
Win32 API function GlobalMemoryStatus both before and after handling a
million exception occurrences. The memory status before and after
handling these exceptions was virtually the same. This seems to indicate
that on XP at least, GNAT exceptions do *not* leak memory.
--
"All things extant in this world,
Gods of Heaven, gods of Earth,
Let everything be as it should be;
Thus shall it be!"
- Magical chant from "Magical Shopping Arcade Abenobashi"
"Drizzle, Drazzle, Drozzle, Drome,
Time for the this one to come home!"
- Mr. Lizard from "Tutor Turtle"
next prev parent reply other threads:[~2005-10-21 15:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-21 10:07 many exceptions cause memory leak? Christopher Broeg
2005-10-21 15:38 ` Frank J. Lhota [this message]
2005-10-21 17:59 ` Robert Klungle
2005-10-21 18:13 ` Ed Falis
2005-10-24 11:29 ` Christopher Broeg
2005-10-24 20:00 ` Simon Wright
2005-10-25 7:32 ` Christopher Broeg
2005-10-25 7:42 ` Christopher Broeg
2005-10-25 12:34 ` Alex R. Mosteo
2005-10-25 12:55 ` Alex R. Mosteo
2005-10-25 18:50 ` Wiljan Derks
2005-10-26 10:56 ` Christopher Broeg
2005-10-25 13:09 ` Frank J. Lhota
2005-10-25 14:09 ` Christopher Broeg
2005-10-24 21:27 ` Andreas Schulz
2005-10-26 12:45 ` Christopher Broeg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox