home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!news
- From: julian@cs.utexas.edu (Dun Julian Wong)
- Newsgroups: comp.windows.open-look
- Subject: Xview: Drawing to the user interface from another process
- Date: 22 Aug 1992 23:11:55 -0500
- Organization: CS Dept, University of Texas at Austin
- Lines: 23
- Message-ID: <l9e40bINNth@saltillo.cs.utexas.edu>
- NNTP-Posting-Host: saltillo.cs.utexas.edu
-
- I am writing an X-Window application using Xview. There are two processes in
- the program that are run concurrently. One of the process is the user
- interface, which is controled by xv_main_loop(). The other is my main() program.
- During run-time, I want to draw something to the user interface FROM the main()
- program. These drawings(frequency and appearence) are totally independent of the
- user interface, and cannot be controled by event handlers and xv_main_loop of
- the user interface.
-
- I get various values of dislay, window and gc of the user interface BEFORE
- calling fork() to start the child process -- which is essentially xv_main_loop().
- However, this didn't work. When the the main() prgram starts draw --
- XDrawLine(markwin_dpy,markwin_xwin,markwin_gc,20,30,30,40);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- these value are obtained by the repaint
- routine of while creating the canvas
- which is done before calling fork() to
- start xv_main_loop().
- I got segementation fault(core dump) error. Would someone help me on this probem?
-
- Sincerely,
- -Julian
-
-
-