Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!orion.oac.uci.edu!ucivax!zardoz.cpd.com!spsd!dg-rtp!bdrc!math!lrp From: lrp@math.camelot.DUPONTEOP.COM (Larry R. Paulhus-Software Development) Newsgroups: comp.windows.x Subject: XtAddWorkProc Question? Keywords: X windows, XtAddworkProc, XtMailLoop, XtNextEvent Message-ID: <567@math.camelot.DUPONTEOP.COM> Date: 30 May 91 13:24:25 GMT Organization: DuPont EOP, Morrisville, NC Lines: 24 Help, I am attempting to integrate X and Motif with a third party object oriented graphics package. I need the GUI process to check the IPC queue periodically and I was planning to use XtAddWorkProc (or XtAppAddWorkProc) to add a process to do just that. My problem is this third party o. o. graphics package doesn't call XtMainLoop. Instead they have written their own version of MainLoop that calls XtNextEvent and then XtDispatchEvent. My question is: Does XtAddWorkProc work on the XtNextEvent call (in the same manner as XtAddTimeOut) or is it working at the XtMainLoop level. I have asked the o. o. graphics vendor and they do not know. They suggested I use XtAddTimeOut instead. I could, but I would prefer to avoid the overhead of setting a new TimeOut at the end of the function call. Please mail your responses to me at lrp@mv.dupont.com (the mail address above is different since we get our news feed from a different source than our mail). I will forward responses to anyone who requests them or post a summary if there is that much interest in my problem. Thank you for your help. Larry Paulhus DuPont EOP, Morrisville, NC "My opinions are just that, mine. DuPont doesn't pay me enough to express their's"