Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: FKEY trouble Message-ID: <5091.27E39C99@stjhmc.fidonet.org> Date: 13 Mar 91 17:06:00 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 31 David Byers writes in a message to All DB> I am working on an FKEY that will need to store four byte of DB> data between each invocation. Without that storage, it simply To: c90davby@odalix.ida.liu.se DB> won't work. DB> The question is, how do i do it? The storage must be global, DB> independent of which application is in the foreground under multifinder, DB> and should stay around even if the user launches or exits from DB> an application. DB> Thanks for any help I can get I have the same problem for an FKEY and while I haven't tried it yet, I think the answer is to create a resource for the System (or your own file) called "mLng" or somesuch. If it exists, then use it as a scratch pad, if it doesn't exist, then create it. Use ID 1000 or somesuch and you should be set... (I hope) Let me know if this works or if someone else comes up with a better way, as I need to use this too. (ever want an interactive profiler that can "zoom in" on the most used memory locations and display a graph from a DA while your program is running?). Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org