Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!ucla-cs!zen!ucbvax!hoser.berkeley.edu!bryce From: bryce@hoser.berkeley.edu (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: Intuition's "dont mess with these" fields... Message-ID: <21469@ucbvax.BERKELEY.EDU> Date: Tue, 27-Oct-87 01:30:45 EST Article-I.D.: ucbvax.21469 Posted: Tue Oct 27 01:30:45 1987 Date-Received: Thu, 29-Oct-87 19:39:49 EST References: <1961@amiga.amiga.UUCP> <1825@cadovax.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: bryce@hoser.berkeley.edu (Bryce Nesbitt) Organization: University of California at Berkeley Lines: 73 Keywords: Intuition verboten nopokenzefields In article <1825@cadovax.UUCP> keithd@cadovax.UUCP (Keith Doyle) writes: >In article <1961@amiga.amiga.UUCP> bart@amiga.UUCP (Barry A. Whitebook) writes: >. >. "DON'T MESS WITH THESE" >. >That still doesn't address the immediate problem, which is we need the >functionality, and IMMEDIATELY as our program is going out in 2 weeks. >Right now it patches MaxXMouse and MaxYMouse to adjust the centering for >overscan screens. It works fine, but isn't approved. It's going to hit >the streets that way if you can't tell us how it should be done better, >and within the next 2 weeks. Nobody is going to like this solution much, but you will have to admit it should work: Check the version of Intuition (IntuitionBase->LibNode.lib_Version): If less than 33, post a requester saying "Requires at least Kickstart V1.2". If it is 33 or 34 then do the above kludge. If it is *above* 34, then assume that the bug has been fixed, or at least the IntuitionBase *has* changed, and thus cannot be messed with. (I call it a bug because I highly suspect a change to the OS will render your problem null and void) For Your Information, here are the Version numbers as I understand them: 30 ;V1.0 31 ;V1.1 32 ;V1.1 (with PAL video support) 33 ;V1.2 34 ;V1.21 (Adds hard disk boot support to V1.2.. NOT AVAILABLE YET. I KNOW NOTHING ELSE ABOUT IT. PATIENCE IS A VIRTUE. DON'T WORRY ABOUT WHEN IT MIGHT BE RELEASED. DON'T FLOOD THE NET WITH QUESTIONS!) This solution is *slightly* better than just mashing Intuition's private data structure. BTW: The "LockIBase(0L)" call can be used to disable Intuition temporarily while doing wild things. Again it is not good to do such things, but at least try to protect yourself. Example: long key; key=LockIBase(0L); /* Do funny stuff here... but not much of it... be QUICK! */ UnlockIBase(key); Flakey software comes about in part because people break rules like the above mouse fields. I can sympathize with your need to release a product. On the other hand I once did an Operating System upgrade project where everyone had been playing with reserved bits, undefined entry points, undocumented features etc. It's hell to work on a system like that. I'd like to see the Amiga grow and improve... it can't if people insist on breaking the rules too often. All I'm saying is take care and tread lightly... >Keith Doyle ># {ucbvax,decvax}!trwrb!cadovax!keithd Contel Business Systems 213-323-8170 |\ /| . Ack! (NAK, SOH, EOT) {o O} . bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce (") U "Fanitic: One who can't change his mind, and won't change the subject."