home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / 15195 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.5 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  2. From: converse@expo.lcs.mit.EDU (Donna Converse)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Many event handlers
  5. Message-ID: <9208121541.AA12799@excess.lcs.mit.edu>
  6. Date: 12 Aug 92 15:41:21 GMT
  7. References: <17429@autodesk.COM>
  8. Sender: daemon@athena.mit.edu (Mr Background)
  9. Organization: X Consortium, MIT Laboratory for Computer Science
  10. Lines: 24
  11.  
  12.  
  13. Problem with R4 Xt event handlers:
  14.  
  15. > I'm having a strange weirdness with event handlers and I was
  16. > wondering if anyone out there could help.  I'm posting multiple
  17. > event handlers onto a window and many of them will trigger at
  18. > once.  If > 98 events trigger at one time, my application instantly
  19. > seg faults before calling the first event handler.  With 98 events
  20. > or less, each handler gets called properly.  It seems that the
  21. > program is crashing inside the event dispatcher.  Does anyone out
  22. > there know of an upper limit to the number of events allowed to be
  23. > simultaneously dispatched by X.
  24.  
  25. Everywhere above, "events" should be replaced by "event handlers".
  26.  
  27. There should be no upper limit on the number of event handlers allowed to
  28. be registered for a single window.  In the R4 Intrinsics library, registering
  29. close to 100 event handlers for any single window will cause an internal Xt
  30. data structure to overflow.  The implementation, in Event.c, assumed a
  31. static maximum number of event handlers.  Fixed in R5.
  32.  
  33.  
  34. Donna Converse
  35. MIT X Consortium
  36.