From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe0d58e5e40e10c7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Reply-To: NOSPAM.lhota@adarose.com User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: many exceptions cause memory leak? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 25 Oct 2005 13:09:42 GMT NNTP-Posting-Host: 141.154.56.84 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1130245782 141.154.56.84 (Tue, 25 Oct 2005 09:09:42 EDT) NNTP-Posting-Date: Tue, 25 Oct 2005 09:09:42 EDT Xref: g2news1.google.com comp.lang.ada:5921 Date: 2005-10-25T13:09:42+00:00 List-Id: 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"