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,60c63f7a79fb7c92 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!atl-c03.usenetserver.com!news.usenetserver.com!atl-c08.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!ALLTEL.NET-a2kHrUvQQWlmc!not-for-mail Date: Mon, 10 Oct 2005 09:08:09 -0500 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Calling ada code from non Ada threads References: <1128929531.815574.275060@g44g2000cwa.googlegroups.com> In-Reply-To: <1128929531.815574.275060@g44g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: 0dda2434a75fca13cf39226315 Xref: g2news1.google.com comp.lang.ada:5534 Date: 2005-10-10T09:08:09-05:00 List-Id: andy_starritt@hotmail.com wrote: > The call back is in a thread created by the shared library, > and this causes a segmentation fault if I try to do anything > 'significant' in the Ada code (even a simple Ada.Text_IO.Put_Line is > problematic). If I just copy the > call back procedure parameter data to a package > level variable all is okay. > > Is there any way to let the Ada know and/or be 'happy' with code > being invoked in a non Ada thread? > > BtW using Linux Red Hat 9 and RH Enterprise 3.0 What compiler are you using? Gnat 3.15p? If you are, are you aware of the tasking problem interacting with threads on RH 9? I know you're working with "threads", but perhaps it's related? See http://www.mckae.com/dtq_common/README.RedHat9 for more info. -- Marc A. Criley -- McKae Technologies -- www.mckae.com -- DTraq - XPath In Ada - XML EZ Out