bug-gnustep
[Top][All Lists]
Advanced

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

Re: [bugs #8498] [MinGW] NSUnarchiver crashes


From: Wim Oudshoorn
Subject: Re: [bugs #8498] [MinGW] NSUnarchiver crashes
Date: Sun, 11 Apr 2004 10:45:23 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (darwin)

"Richard Frith-Macdonald" <noreply@savannah.gnu.org> writes:

> This mail is an automated notification from the bugs tracker
>
> ------------------ Additional Follow-up Comments
> I fixed the bug in NSNumber and added a
> simple mechanism for retaining decoded objects ... store them in an
> NSMutableArray until the NSUnarchiver is deallocated.
>

>From the top of my head, I am not sure if this is correct.  
Consider the following code in  initWithCoder:

- initWithCoder: ...
{
        ....
        [self dealloc];
        self = someotherobject;
        ....
        return self;
}

Arguably this is bad style, you should NOT dealloc, but just release.
But AFAIK this works with WO4.5, and this will not work if you
put the objects in an NS(Mutable)Array during unarchiving.
(It will crash when the array is deallocated.)

I think there should be a solution that works better.  
I hope my schedule allows me to investigate tuesday.


Wim Oudshoorn.
 
       





reply via email to

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