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-Thread: 103376,79418686b977da7c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada to Interfacing C# (Urgent) References: <1143225008.097384.33200@t31g2000cwb.googlegroups.com> <1143276591.122080.245640@t31g2000cwb.googlegroups.com> In-Reply-To: <1143276591.122080.245640@t31g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.214.35.215 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1143333071 12.214.35.215 (Sun, 26 Mar 2006 00:31:11 GMT) NNTP-Posting-Date: Sun, 26 Mar 2006 00:31:11 GMT Date: Sun, 26 Mar 2006 00:31:11 GMT Xref: g2news1.google.com comp.lang.ada:3615 Date: 2006-03-26T00:31:11+00:00 List-Id: Hakan wrote: > I had also used the pragma Controlled clause.But not worked. Pragma Controlled simply prevents garbage collection, something that is not likely to happen with GNAT. It has nothing to do with interfacing to C. Pragma Convention (C, ...) tells the compiler to use the same representation for objects of the type that a C compiler would use. For access types, they will be represented as a C pointer. -- Jeff Carter "I spun around, and there I was, face to face with a six-year-old kid. Well, I just threw my guns down and walked away. Little bastard shot me in the ass." Blazing Saddles 40