home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!world!ivanski
- From: ivanski@world.std.com (Ivan M CaveroBelaunde)
- Subject: Re: I will kill or die for this tool
- Message-ID: <BzLI8K.Fso@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1992Dec21.043540.20183@hobbes.kzoo.edu>
- Date: Mon, 21 Dec 1992 06:05:07 GMT
- Lines: 31
-
- k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
-
- >Might some enterprising developer want to write a Macsbug dcmd that will
- >keep track of the state of a handle/resource? It would trap _HLock,
- >_HUnlock, _HPurge, _HNoPurge, _AddResource, _DetachResource,
- >_ReleaseResource, and _DisposHandle, oh yeah and _HSetState too. You
- >tell it to keep track of a certain handle, and to drop into Macsbug when
- >its state changes a certain way.
-
- >See, I have this resource, and the code goes through some incredible
- >gyrations to keep it locked when necessary and unlocked when not, and
- >it's screwing up somewhere between function X and function Y. If I
- >could just break into Macsbug at X, find the resource, tell this dcmd to
- >keep its eye out for any calls that unlock it, and continue, I'd be home
- >free. I've been trying to track it down, and after several hours and
- >thousands of lines of code (one at a time), I'm not any closer.
-
- The following lines (or something along these lines - I'm a little fried
- right now) should do it:
-
- atb DisposHandle rA0=myHandle
- (this one will work for any other mem mgr trap as well)
- atb ReleaseResource rA7^=myHandle
- (this one will work for the resource calls)
-
- Hope this helps.
-
- -Ivan
- ---
- Ivan Cavero Belaunde (ivanski@world.std.com)
- DiVA Corporation
-