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,d029967618cbf48a X-Google-Attributes: gid103376,public From: dccoote@werple.mira.net.au (David Coote) Subject: Re: Rational and X11Ada -- HELP??? Date: 1998/09/19 Message-ID: <6tvcer$7gb$1@eplet.mira.net.au>#1/1 X-Deja-AN: 392639408 References: <6tabgr$lfp$1@usenet46.supernews.com> Content-Type: Text/Plain; charset=US-ASCII Organization: werple public-access Internet Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-09-19T00:00:00+00:00 List-Id: We had problems using Apex 2.4.6 with X bindings which we got around by rep clausing the data passed to X. This is painful. We're hoping that the whole pragma C stuff works better with Apex 3.0x. David In article <6tabgr$lfp$1@usenet46.supernews.com>, walky@netmagic.net says... > >Gentlepeople: > >The situation is as follows: > >We have a Sparc server running Solaris2.6, with Rational Apex as the ada >development system, and gcc as the c compiler. The workstations are PCs >running the eXceed x- server. > > We downloaded and installed the Intermetrics X11Ada bindings to Ada95 on >the server. > >They installed ok, but programs compiled and linked using them crash. The >crash is usually in an area where the program is trying to use data from the >display structure returned from XOpenDisplay. > >1) we are using the correct hostname: server string in the display_name >parameter to XOpenDisplay. > >2) Other X programs not using the bindings work just fine. > > There are two versions of the x-library (one in /usr/lib and the other >in /usr/openwin/lib). I've linked basicwin and curves (bindings test >programs) to both and gotten the same result, therefore eliminating the >possibility that I've linked in the wrong library version. > > I've run two versions of both basicwin and curves (linked to the two >sets of libraries) from a Sun machine, eliminating Exceed as the cause of >the problem. > > I wrote a little C program which makes some of the library calls that >are crashing the Ada programs and then prints out the results, which look >fine. > > I think this pretty much eliminates any source of problems aside from >the compiler/linker and the bindings themselves, and I'm starting to suspect >Rational. > >If anyone has experienced these problems before, any help would be >appreciated. > >Thanks > >Alan Walkington >Sr. Software Engineer >United Defense L.P. - San Jose >work: alan_walkington@udlp.com >home: walky@netmagic.net > > > >