home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / openloo / 5147 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.1 KB

  1. Path: sparky!uunet!mcsun!ieunet!ccvax.ucd.ie!ctoomey
  2. From: ctoomey@ccvax.ucd.ie
  3. Newsgroups: comp.windows.open-look
  4. Subject: Weird XView 3.0 XV_KEY_DATA problem
  5. Message-ID: <1993Jan22.132748.50171@ccvax.ucd.ie>
  6. Date: 22 Jan 93 13:27:48 GMT
  7. Organization: University College Dublin
  8. Lines: 19
  9.  
  10. Hi All,
  11.     came across a weird problem with XView 3.0 today. I created a canvas as
  12. a child of a frame and attached 11 items to it's paint window using
  13. XV_KEY_DATA. This worked fine with XView 2.0 but crashed under version 3.0.
  14. The cause seemed was an xv_get(window,XV_KEY_DATA,5) instruction which should
  15. have returned NULL because that item had not yet been set. I tried setting the 
  16. item in advance - now the thing crashed just after the start of the xv main
  17. loop. After many hours poring over manuals and wracking my brains for possible 
  18. causes I tried changing the 5 to a 23. It worked!
  19.  
  20.     What I'd like to know is why? Is it a mistake in my code (there are 
  21. definitely no other items with this number) or is there an instruction in XView
  22. 3.0 like "if key==5 then crash" :-) If anyone has any ideas I'd like to know...
  23.  
  24.             thanks in advance,
  25.  
  26.             Colm Toomey
  27.  
  28.             ctoomey@ccvax.ucd.ie 
  29.