comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@alexandria (Jon S Anthony)
Subject: Re: Ada/X Windows Newbie Problem
Date: 1996/10/10
Date: 1996-10-10T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Oct10133355@alexandria> (raw)
In-Reply-To: 53g3e1$fj5@curlew.mtx.net.au


In article <53g3e1$fj5@curlew.mtx.net.au> scurtis@dove.mtx.net.au (Scott D. Curtis) writes:

>    hWnd := Xt.Intrinsic.XtVaCreateManagedWidget(
>               "pushme",
>               Motif.Pushb.XmPushButtonWidgetClass_obj,
>              parent,
>             Stdarg.Empty & Motif.xmstrdefs.XmNlabelString & label & Nulst
>         );
> 
>    where parent is of type Widget, label is of type Motif.Xm.XmString.
....
> calls made by this function, I believe that the underlying C function
> in Xlib is failing with one of the pointer values

Almost certainly.  On the face of it, it looks about right.  Have you
assigned label and parent???


>    Can anyone suggest why the following statement is raising a STORAGE_ERROR:

To any ACT folk (or other GNAT savvy folk):

I've noticed that GNAT (tries?) to raise Storage_Error in this sort of
case (bad pointer dereference attempt in imported code), though it is
not always successful.  Is this (the "catching" of the segv and
raising of SE) by design or accidental in some way?

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178

617.484.3383
jsa@organon.com





  parent reply	other threads:[~1996-10-10  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-09  0:00 Ada/X Windows Newbie Problem Scott D. Curtis
1996-10-09  0:00 ` David Emery
1996-10-10  0:00 ` Jon S Anthony [this message]
1996-10-10  0:00   ` Robert Dewar
replies disabled

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