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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7fe1f0669a9fe9d X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GNAT implementation bug? (or my code) Date: 2000/04/15 Message-ID: <8d9qne$3q6$1@nnrp1.deja.com>#1/1 X-Deja-AN: 611497481 References: <38F5EC37.DED92CDE@ensco.com> <38F79059.27632CBE@averstar.com> <38F7935B.22173D26@ensco.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Apr 15 13:27:18 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-15T00:00:00+00:00 List-Id: In article <38F7935B.22173D26@ensco.com>, Stephen Arnold wrote: > Erm... With a little help, I found the problem (and posted on my other > thread) and it seems like my code should've bombed on Solaris too (as I > was trying to free the same memory twice -> Remove calls Clear, which > frees Orphan and sets the list pointers to null, then it jumps back to > Remove, which tried to free Orphan again). Any thoughts? > > (thanks for trying my code, though :) First, don't be too quick to assume that there is a compiler or run-time bug (this advice is also directed to Tucker :-) :-) Second, investigate tools that help you make sure your memory management is correct. GNAT comes with such tools (investigate gnatmem), and I assume other Ada 95 technologies have similar capbilities. Sent via Deja.com http://www.deja.com/ Before you buy.