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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4202c79b3ba60ee4 X-Google-Attributes: gid103376,public From: jsa@alexandria (Jon S Anthony) Subject: Re: Ada/X Windows Newbie Problem Date: 1996/10/10 Message-ID: #1/1 X-Deja-AN: 188550706 sender: news@organon.com (news) references: <53g3e1$fj5@curlew.mtx.net.au> organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-10-10T00:00:00+00:00 List-Id: 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