Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!gatech!udel!rochester!kodak!ispd-newsserver!ism.isc.com!emisle!dvb From: dvb@emisle.emisle (David Van Beveren) Newsgroups: comp.windows.x Subject: WorkProcess under ISC Summary: XtAppAddWorkProc doesn't work under ISC Keywords: WorkProc, ISC Message-ID: <1991Feb4.235442.11988@emisle.uucp> Date: 4 Feb 91 23:54:42 GMT Sender: dvb@emisle.uucp (David Van Beveren) Organization: Emerald Isle Systems, Ltd. Agoura Hills, CA Lines: 52 I am running Interactive unix 2.0.2, with TCP/IP 1.1.2 and X-windows 1.2. A program that compiled under X11R4, and ran fine compiles under ISC's X11R3, but will not run correctly. Specifically, I have a work process, which is registered with the call XtAppAddWorkProc( app_context, proc, NULL). Under a system built with the MIT X11R4 tape, on a sparcstation, this works fine, with the work process being called regularly when there are no X-events pending. However, under ISC's X, the work process gets called once only. Specifically, this is the code: . . . main(argc, argv) int argc; char **argv; { XEvent event; /* initialize the socket interface */ conn_obj = initialize_socket(); NPGetSocket( conn_obj, &sock); /* This is proprietary stuff... */ /* perform windows startup stuff */ initialize_windows(argc, argv); /* Open display, etc... */ /* Add the server background process */ XtAppAddWorkProc( ac, server_work_proc, NULL); /* do the X loop */ for(;;) { XtAppNextEvent(ac, &event); XtDispatchEvent(&event); } } XtWorkProc server_work_proc() { /* This process is run as a work process in the background of the X loop. */ printf("In process\n"); } . . . What is wrong?? -- David Van Beveren INTERNET: emisle!dvb@ism.isc.com EIS ltd. Professional Software Services UUCP: ..uunet!emisle!dvb voice: (818) 587-1247