discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zombie tracking....


From: Benhur Stein
Subject: Re: Zombie tracking....
Date: Tue, 11 Apr 2006 10:17:10 -0300

Well, you can probably make a category of NSZombie that implements
the methods you want. Any zombied object would execute those methods
instead of their original ones.
Or maybe you could write specific zombies for specific classes, and alter
the code in NSObject where objects are zombified, to change them into
a specific class instead of the generic NSZombie.

Good luck,
Benhur

On 4/11/06, Lloyd Dupont <lloyd@nova-mind.com> wrote:
> I need to know not only if an object is deallocated twice (with zombies)
> but, also, when a zombie object is used inapproprietely.
> I cannot even start my application with GDB (which is a .NET application),
> let alone debug it.
> Problem is the ObjectiveC part of my application is opaque to
> VisualStudion.NET debugger.
>
> What I would like to do is write a DebugObject which will poseAs: NSObject
> and when it is deallocated replace all its instance method pointer by an IMP
> of my making (which would, basicall, trace illegal call).
>
> Any hint on how I could do that.
> Constructing a fake isa pointer being a bit difficult I wonder if someone
> could provide me some example doing just that.
> Ideally I neek this fake isa pointer to feature the same instance method
> pointer as the original, except they would all point to a method of my own
> making.
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]