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: Gregory John Casamento
Subject: Re: [bugs #8498] [MinGW] NSUnarchiver crashes
Date: Sun, 11 Apr 2004 06:33:22 -0700 (PDT)

Happy to report that the new patch works just fine with Gorm, gormtest, and a
few other test apps I use for regression testing.

Great work, and thanks. :)

GJC
--- Wim Oudshoorn <address@hidden> wrote:
> "Richard Frith-Macdonald" <address@hidden> 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.
>  
>        
> 
> 
> 
> _______________________________________________
> Bug-gnustep mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gnustep


=====
Gregory John Casamento -- CEO/President Open Logic Corp.

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html




reply via email to

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