comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <NOSPAM.lhota@adarose.com>
Subject: Re: many exceptions cause memory leak?
Date: Tue, 25 Oct 2005 13:09:42 GMT
Date: 2005-10-25T13:09:42+00:00	[thread overview]
Message-ID: <q8q7f.4346$c%.822@trndny02> (raw)
In-Reply-To: <djkn27$boi$1@lc03.rz.uni-jena.de>

Do you ever call the following function from the Ada.Exceptions package?

    function Save_Occurrence
      (Source : Exception_Occurrence)
       return   Exception_Occurrence_Access;

This function allocates an Exception Occurrence from the heap and copies 
the data from Source into this new occurrence. It is up to the 
programmer to deallocate the result of this function. An instance of 
Unchecked_Conversion can be used for this purpose.

Failure to deallocate the results of the Save_Occurrence function would 
certainly result in a memory leak.

Also, is there any other Ada.Exceptions subprogram that you call? More 
info on how you are using exceptions might help us diagnose the problem.

-- 
"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"



  parent reply	other threads:[~2005-10-25 13:09 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
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 [this message]
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