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