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-23 20:22:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!chnws02.ne.ipsvc.net!cyclone.ne.ipsvc.net!24.128.8.70!typhoon.ne.ipsvc.net.POSTED!not-for-mail From: "Tony Yu" Newsgroups: comp.lang.ada References: <%Elx8.52627$WV1.16784880@typhoon.ne.ipsvc.net> <3CC6165F.90104@telepath.com> Subject: Re: Ada / Motif Binding Question X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <4lpx8.53006$WV1.16967560@typhoon.ne.ipsvc.net> Date: Wed, 24 Apr 2002 03:08:48 GMT NNTP-Posting-Host: 24.61.238.94 X-Complaints-To: abuse@attbi.com X-Trace: typhoon.ne.ipsvc.net 1019617728 24.61.238.94 (Tue, 23 Apr 2002 23:08:48 EDT) NNTP-Posting-Date: Tue, 23 Apr 2002 23:08:48 EDT Organization: ATT Broadband Xref: archiver1.google.com comp.lang.ada:23032 Date: 2002-04-24T03:08:48+00:00 List-Id: "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. > One possibility I see is that "Exit_Option" does not have a "pragma > Convention (C, ...)" on it. Ada procedures and C functions usually have > different calling sequences, and Motif expects to be "talking C" to its > callbacks. > > However, some bindings take care of this for you, which is why it > matters what bindings you have. > > > Another possibility is that C_Exit() (whatever that is) is causing you > grief. You could try changing that line to "null;" to see if the crash > goes away. I tried commenting out the entire exit import, but I still seem to get the Storage_Error. Whats interesting is that; When I had the pragma, I could only declare a string of 584 characters in length, and when commenting out the entire pragma import, I can then declare a string of 624 characters in length. With string lengths of 585, 625 respectively, the Storage_Error exception occurs. This is the reason why I suspect somehow the Motif binding is limiting the amount of stack space available for the callback procedure.