Path: utzoo!utgpu!water!watmath!clyde!att!whuts!picuxa!gpasq From: gpasq@picuxa.UUCP (Greg Pasquariello X1190) Newsgroups: comp.windows.x Subject: Why does XtAddTimeout blowup? Message-ID: <660@picuxa.UUCP> Date: 28 Aug 88 17:39:05 GMT Organization: AT&T Information Systems, Parsippany NJ Lines: 52 Given the following program, why does the routine called by the timeout do it's thing, then blow up with a signal 10 (System 5 bus error). My feeling is that something is happening when the process is removed from the timeout list or shortly thereafter. Any ideas/fixes? Thanks in advance. Greg Pasquariello --------CUT HERE--------------- #include #include #include Widget toplevel, label; Arg wargs[] = { {XtNlabel, "Imaginitive Label Here"} }; void timerproc(); main(argc, argv) int argc; char **argv; { register int n; toplevel = XtInitialize("main", "XFm", NULL, 0, &argc, argv); label = XtCreateManagedWidget("label", labelWidgetClass, toplevel, wargs, XtNumber(wargs)); XtRealizeWidget(toplevel); XtAddTimeOut((unsigned long)10, timerproc, NULL); XtMainLoop(); } void timerproc(client, id) caddr_t client; XtIntervalId *id; { printf("Timer popped\n"); } -- ========================================================================= Greg Pasquariello AT&T Product Integration Center att!picuxa!gpasq 299 Jefferson Rd, Parsippany, NJ 07054 =========================================================================