Path: utzoo!attcan!uunet!unisoft!hoptoad!farcomp!murat From: murat@farcomp.UUCP (Murat Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: cdev - INIT Data Exchange Keywords: cdev, INIT Message-ID: <206@farcomp.UUCP> Date: 7 Jun 90 02:26:13 GMT References: <2695@cooper.cooper.EDU> <55045@microsoft.UUCP> <1990Jun5.142604.11826@asterix.drev.dnd.ca> Reply-To: murat@farcomp.UUCP (Murat Konar) Organization: Farallon Computing Inc. Berkeley, CA Lines: 31 In article <1990Jun5.142604.11826@asterix.drev.dnd.ca> louis@asterix.drev.dnd.ca (Louis Demers) writes: >t-alexc@microsoft.UUCP (Alex CHAFFEE) writes: > >>My favorite way is to have the INIT write a resource of type 'ADDR' >>into the preferences file (which should be buried safe in the system >>folder). The contents of this resource is just a longword pointing >>to the location of the shared data -- it can be a handle, or a >>pointer, or the proper value of A4. This is done once at startup, [...] > What happens if you disable the init and it is not loaded. Your > resource is still there pointing to some area it has no right to > claim. Upon shutdown, Do you remove this resource ? what happens [...] I embed a 4 character string (OSType) into my patch code at a known offset from its address and check for it before writing there. Works really well. f o d d e r -- ____________________________________________________________________ Have a day. :^| Murat N. Konar murat@farcomp.UUCP -or- farcomp!murat@apple.com