comp.lang.ada
 help / color / mirror / Atom feed
From: "Tony Yu" <tonyyu99@attbi.com>
Subject: Re: Ada / Motif Binding Question
Date: Wed, 24 Apr 2002 03:08:48 GMT
Date: 2002-04-24T03:08:48+00:00	[thread overview]
Message-ID: <4lpx8.53006$WV1.16967560@typhoon.ne.ipsvc.net> (raw)
In-Reply-To: 3CC6165F.90104@telepath.com

"Ted Dennison" <dennison@telepath.com> 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.





  reply	other threads:[~2002-04-24  3:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 22:56 Ada / Motif Binding Question Tony Yu
2002-04-24  2:19 ` Ted Dennison
2002-04-24  3:08   ` Tony Yu [this message]
2002-04-26  6:28     ` Christopher Green
2002-04-29 22:55       ` Tony Yu
2002-04-26  2:25 ` Greg Bek
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox