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,b33179d12cf6aed7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-05 05:17:42 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!sooner.brightok.net!not-for-mail From: Harry Tucker User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Multiple access to one object and deallocation Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 05 Nov 2003 07:17:39 -0600 NNTP-Posting-Host: 216.226.11.20 X-Trace: sooner.brightok.net 1068038259 216.226.11.20 (Wed, 05 Nov 2003 07:17:39 CST) NNTP-Posting-Date: Wed, 05 Nov 2003 07:17:39 CST Xref: archiver1.google.com comp.lang.ada:2077 Date: 2003-11-05T07:17:39-06:00 List-Id: My question is how to count references to an object so it will be deallocated only after all references have gone out of scope or set to null? An object reference could exist in several lists at any one time. What I'm looking for is an easy way to catch my own coding errors so I don't bleed memory too much by overlooking a reference (access type). Does anyone know if A# uses managed code? Since that would solve the issue through garbage collection. And then is pragma Controlled (ARM 13.11.3) implemented to prevent automatic garbage collection/movement of an object if needed. Harry (When totally bored, 49, and retired, fight back! Writing a new mud in Ada just might do the trick.)