Xref: utzoo comp.windows.x:31329 comp.sys.apollo:7595 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pilchuck!amc-gw!intek01.UUCP!mark From: mark@intek01.uucp (Mark McWiggins) Newsgroups: comp.windows.x,comp.sys.apollo Subject: Problems with X/Motif/Apollo Message-ID: <1991Jan9.011220.9219@intek01.uucp> Date: 9 Jan 91 01:12:20 GMT Organization: Integration Technologies, Inc. (Intek) Lines: 58 I'm new to X/Motif and am having a problem. I first tried examples from Douglas Young's book "The X Window System: Programming and Applications with Xt (OSF/Motif ed.) and got various flaky results. The simplest "hello, world" ('memo', if you've got the book) worked OK, but other examples crash in various ways. For example, 'formedit' comes up OK, but crashes with a segmentation fault when I click on the frame, or do much of anything. The only indication I get of things being wrong with these (or my environment) are a warning from the Toolkit: X Toolkit Warning: Cannot find callback list in XtAddCallbacks Though I also get this warning for examples that (kind of) work. I also tried the trivial example from volume 4 of the O'Reilly manual: ------ #include #include #include main(argc, argv) int argc; char *argv; { Widget toplevel, hello; toplevel = XtInitialize(argv[0],"XHello",NULL,0,&argc,argv); hello = XtCreateManagedWidget("hello",labelWidgetClass,toplevel,NULL,0); XtRealizeWidget(toplevel); XtMainLoop(); } ----- and got: ---- X Toolkit Warning: Representation type Cursor must match superclass's to override cursor X Toolkit Warning: No type converter registered for 'Cursor' to 'Pixel' conversion Segmentation fault ----- before the window had come up. I'm running on an Apollo DN3500 under OS v10.3, with Motif 1.0. Thanks in advance for any insight. -- Mark McWiggins Integration Technologies, Inc. (Intek) +1 206 455 9935 DISCLAIMER: I could be wrong ... 1400 112th Ave SE #202 Bellevue WA 98004 mark@intek.com Ask me about C++!