[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GDL2] NSAutoreleasePool/EOFault
From: |
Manuel Guesdon |
Subject: |
[GDL2] NSAutoreleasePool/EOFault |
Date: |
Sat, 12 Mar 2005 18:50:44 +0100 (CET) |
Hi,
With version 1.59 of NSAutoreleasePool.m, gdl2 'stopped working'
(it was working with v 1.55).
in NSAutoreleasePool -dealloc, calling
instanceMethodForSelector on a EOFault object make the object de-faulting and
produce strange recurse loop until it fill the stack.
Adding
/**
* Returns a pointer to the C function implementing the method used
* to respond to messages with aSelector by instances of the receiving
* class.
* <br />Raises NSInvalidArgumentException if given a null selector.
*/
+ (IMP) instanceMethodForSelector: (SEL)aSelector
{
if (aSelector == 0)
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
/*
* Since 'self' is an class, get_imp() will get the instance method.
*/
return get_imp((Class)self, aSelector);
}
in EOFault solve the problem.
What do you think ? Any objection to to commit it ?
Manuel
--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <address@hidden>
14 rue Jean-Baptiste Clement - 93200 Saint-Denis - France
Tel: +33 1 4940 0999 - Fax: +33 1 4940 0998
- [GDL2] NSAutoreleasePool/EOFault,
Manuel Guesdon <=
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/12
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/12
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/12
- Re: [GDL2] NSAutoreleasePool/EOFault, Richard Frith-Macdonald, 2005/03/13
- Re[2]: [GDL2] NSAutoreleasePool/EOFault, Manuel Guesdon, 2005/03/13
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/14
- Re[2]: [GDL2] NSAutoreleasePool/EOFault, Manuel Guesdon, 2005/03/14
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/17
- Re[2]: [GDL2] NSAutoreleasePool/EOFault, Manuel Guesdon, 2005/03/17
- Re: [GDL2] NSAutoreleasePool/EOFault, David Ayers, 2005/03/17