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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5521585634f97a70,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-26 07:54:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3C29F26A.4FAC56CF@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: compiler bug or me being stupid? (ok, probably the later :) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 26 Dec 2001 15:54:22 GMT NNTP-Posting-Host: 12.86.33.229 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1009382062 12.86.33.229 (Wed, 26 Dec 2001 15:54:22 GMT) NNTP-Posting-Date: Wed, 26 Dec 2001 15:54:22 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:18310 Date: 2001-12-26T15:54:22+00:00 List-Id: Without a look at your actual code I can only guess. My first guess is that your finalize and adjust procedures may need some inspection. Some of your errors indicate a possible attempt to deallocate from a null access value. Make sure your finalize procedure checks for a null access value and does not call your deallocation routine if the access element is null. Your problem with the differences between the procedure call and the function call are not entirely a surprise. Again, look at the adjust procedure for your Smart_Pointer type. A function return value requires copy semantics to work properly. A procedure IN OUT parameter can do its work by reference. Jim Rogers Colorado Springs, Colorado USA