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,fe5eccc4fca3fd64 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-25 23:28:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14eed!worldnet.att.net!135.173.83.55!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail From: cj.green@worldnet.att.net (Christopher Green) Newsgroups: comp.lang.ada Subject: Re: Ada / Motif Binding Question Message-ID: <3cc4fb1c.32152679@netnews.att.net> References: <%Elx8.52627$WV1.16784880@typhoon.ne.ipsvc.net> <3CC6165F.90104@telepath.com> <4lpx8.53006$WV1.16967560@typhoon.ne.ipsvc.net> X-Newsreader: Forte Free Agent 1.11/32.235 Date: Fri, 26 Apr 2002 06:28:11 GMT NNTP-Posting-Host: 12.80.20.220 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1019802491 12.80.20.220 (Fri, 26 Apr 2002 06:28:11 GMT) NNTP-Posting-Date: Fri, 26 Apr 2002 06:28:11 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:23138 Date: 2002-04-26T06:28:11+00:00 List-Id: On Wed, 24 Apr 2002 03:08:48 GMT, "Tony Yu" wrote: >"Ted Dennison" wrote in message >news:3CC6165F.90104@telepath.com... >> >> You didn't say what Motif bindings you are using. There's no one >> standard set that comes with every compiler (which makes sense, as Win32 >> compilers don't typically have Motif around to bind to). >I believe I am using the AXI bindings. For the most part, I've seen legacy >STARS packages referenced. Not sure if they are the same. I do AXI support for ATC, and that looks like the STARS dialect of AXI. A 'pragma Export' or 'pragma Convention' on Exit_Option would be needed on many hosts. Otherwise, Ada stack-checking code gets confused when it encounters a non-Ada stack frame. It can also be the case that you're running on a task stack or a thread stack that really is too small or cluttered to allocate your string. A more difficult example of this is when you use threads with an Ada runtime that wasn't written to use threads. The thread stack is not where the Ada runtime thinks the stack is, and any Ada code you call raises Storage_Error. If you have more difficulties than can be solved by supplying the right pragma and making sure your stack is large enough, write us at support@atc.com. -- Chris Green