home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / toolkits / xview / 1149 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  30 lines

  1. Newsgroups: alt.toolkits.xview
  2. Path: sparky!uunet!think.com!spool.mu.edu!darwin.sura.net!news.udel.edu!bach.udel.edu!lance
  3. From: lance@bach.udel.edu (Daniel A Lentz)
  4. Subject: itimers and strange problems
  5. Message-ID: <BzorAp.M25@news.udel.edu>
  6. Sender: usenet@news.udel.edu
  7. Nntp-Posting-Host: bach.udel.edu
  8. Organization: University of Delaware
  9. Date: Wed, 23 Dec 1992 00:13:37 GMT
  10. Lines: 18
  11.  
  12.  I have been playing around with xview and devguide and making a simple
  13.  digital clock.  One problem I'm having is that when the application
  14.  runs for long periods of time (~10 hrs) it will crash the system.
  15.  
  16.  I have a feeling it's related to my use of itimers, which is as follows:
  17.  I define a 1 second timer and call notify_set_itimer_func, which sets
  18.  up the window repaint procedure as the itimer func.  Ok, so then
  19.  every second the repaint proc gets called and paints the correct
  20.  digits for the clock.  That's basically it.  Does anyone have any
  21.  suggestions?  Is there some function I should call from within the
  22.  repaint to "dismiss" an itimer or something?
  23.  
  24.  
  25. -- 
  26. o o o o o o                             o o               o o o o o o o o o 
  27.  o o o o o     lance@bach.udel.edu       o o  Good         o o o o o o o o o
  28. o o o o o o    lance@diu.cms.udel.edu   o o     Morning!  o o o o o o o o o
  29.  o o o o o                               o o               o o o o o o o o o
  30.