home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gumby!kzoo!k044477
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Subject: I will kill or die for this tool
- Message-ID: <1992Dec21.043540.20183@hobbes.kzoo.edu>
- Organization: Kalamazoo College
- Date: Mon, 21 Dec 1992 04:35:40 GMT
- Lines: 26
-
- (Not that it would help me much if I were dead, I guess...)
-
- 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.
-
- Does anything like this exist already? Can it be done with a macro
- (break on these a-traps, check the state byte, continue iff the locked
- bit is set)? Does anyone with lots of free time want to write it?
- Or should I tack this onto my Things I'd Really Like To Write list?
- --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- "As you should know by now, we're strong believers in the Apple II
- and always will be. But we can't ignore reality forever."
- - Tom Weishaar
-