Path: utzoo!attcan!uunet!mcsun!inesc!unl!unl!jpc From: jpc@fctunl.rccn.pt (Jose Pina Coelho) Newsgroups: comp.windows.x Subject: what's most important to you for R5? Message-ID: Date: 9 Jul 90 15:41:46 GMT Sender: news@fctunl.rccn.pt (USENET News System) Organization: Universidade Nova de Lisboa -- Lisbon, Portugal Lines: 45 Error messages (I mean with a few more bits of information) Let's show it: I'm debugging a program which opens windows and has to widgets of my own. It runs and runs and runs and then: > X Error of failed request: BadValue (integer parameter out of range for operation) > Major opcode of failed request: 1 (X_CreateWindow) > Minor opcode of failed request: 0 > Resource id in failed request: 0x96 > Serial number of failed request: 228 > Current serial number in output stream: 229 Interesting to know that there is an integer out of range, but which one ?, I mean, there are eight integer arguments to the function, which of them? Is it invalid class ? Is it negative width (or height or border or depth) Is it too much planes for the poor machine ? The message format could have one more line with the call arguments. > Call: XCreateWindow(0x347452, 0x436485, 10, 20, 200, 110, 2, -2, 1, 0x234567, 23, NULL); or > Call to XCreateWindow with negative depth (-2) I know of debuggers, but the bug depends on the phase of xphoon and the debugger is almost unusable and it's a lot easier to find the bug if you know which values are bad. -- Jose Pina Coelho | BITNET/Internet: jpc@fctunl.rccn.pt Rua Jau N 1, 2 Dto | UUCP: jpc@unl.uucp 1300 Lisboa, PORTUGAL | ARPA: jpc%hara.fctunl.rccn.pt@mitvma.mit.edu Home phone: (+351) (1) 640767 - If all men were brothers, would you let one marry your sister ?