home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / toolkits / xview / 1250 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!agate!spool.mu.edu!darwin.sura.net!lhc!ceb!neve
  2. From: neve@nlm.nih.gov (Leif Neve)
  3. Newsgroups: alt.toolkits.xview
  4. Subject: Re: What can you do within an event handler
  5. Message-ID: <1993Jan27.161044.8171@nlm.nih.gov>
  6. Date: 27 Jan 93 16:10:44 GMT
  7. References: <1k5b5gINN7ea@geraldo.cc.utexas.edu>
  8. Sender: news@nlm.nih.gov
  9. Reply-To: neve@nlm.nih.gov
  10. Organization: National Library of Medicine
  11. Lines: 20
  12.  
  13. In article 1k5b5gINN7ea@geraldo.cc.utexas.edu, hotathin@ccwf.cc.utexas.edu (Alex Ho) writes:
  14. >I am trying to do something similar: I have a heavy processing job that I want
  15. >to run. But at the same time, I would like to let the user "stop" the
  16. >job during
  17. >the processing. According to the 19.10.2 of "X View Programming Manual"
  18. >from O'Reilly, there is a function call "notify_dispatch()" that can be
  19. >put into my processing loop, so that the Notifier can still accept
  20. >events while looping. --- But somehow it just doesn't work at all. (No
  21. >event is accepted before finishing the loop) Anyone knows why?
  22.  
  23. Somewhere in O'Reilly it points out that you have to stop the notifier
  24. before you can do explicit dispatching. Use notify_stop() to stop the notifier 
  25. and return you past where the notifier was started, and then
  26. call the routine that does heavy processing and do your explicit
  27. dispatching. After that start up the notifier again (notify_start()).
  28.  
  29. I found a piece of public domain software called ftptool helpful in
  30. this area. It's available at a ftp site near you.
  31.  
  32. Leif Neve
  33.