home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!sgigate!odin!eukanuba.wpd.sgi.com!mikey
- From: mikey@eukanuba.wpd.sgi.com (Mike Yang)
- Newsgroups: comp.sys.sgi
- Subject: Re: Help needed: Xlib-based application
- Message-ID: <1993Jan4.170715.26800@odin.corp.sgi.com>
- Date: 4 Jan 93 17:07:15 GMT
- References: <1993Jan4.162925.4330@iiasa.ac.at>
- Sender: news@odin.corp.sgi.com (Net News)
- Reply-To: mikey@sgi.com
- Organization: Silicon Graphics, Inc.
- Lines: 26
- Nntp-Posting-Host: eukanuba.wpd.sgi.com
-
- In article <1993Jan4.162925.4330@iiasa.ac.at>, patel@iiasa.ac.at (Deepan PATEL) writes:
- |> Problem:
- |> It compiles but does not run. Specifically, it fails in
- |> XQueryFont() with a BUS error. I have the same application
- |> running on sun4, RS/6000, Ultrix, ... I cannot make these
- |> run on the SG display and crash at the same XQueryFont() with a
- |> BadAlloc error.
-
- You're getting a bus error rather than an X error? Assuming that
- you're passing the correct arguments to XQueryFont, check for memory
- corruption/overrun previous to the call.
-
- |> The application is refused a XOpenDisplay() when I try to run the
- |> SG compiled version on another remote display. However I can run
- |> other SG X-based applications (like xclock) on the remote display
- |> without problem. I tried these with different Xlib-based applications,
- |> and they crash at the same point.
-
- If you're using NIS (YP), you need to link with -lsun in order to use
- hostnames not in your local /etc/hosts file. If you used imake with a
- Imakefile, this library would've been linked in automatically in the
- imake-generated Makefile.
-
- -----------------------------------------------------------------------
- Mike Yang Silicon Graphics, Inc.
- mikey@sgi.com 415/390-1786
-