Hi

In fact I found out the issue.
It was because I used class_createInstance instead of  NSAllocateObject.

--Mathieu




> Objet : [Etoile-discuss] Re : Re :  Re :  SIGSEGV on objc_msg_lookup
> 
> Hi,
> 
> > Objet : Re : [Etoile-discuss] Re :  SIGSEGV on  objc_msg_lookup
> 
> > > Objet : Re: [Etoile-discuss] Re :  SIGSEGV  on  objc_msg_lookup
> > > 
> > > On 15 Apr 2011, at 14:26,  Mathieu Suen  wrote:
> > > 
> > > > Hi David
> > >  > 
> > > > Thanks for the  info.
> > > > 
> >  > > So I did try to run the test on  osx and  it work.
> >  > > But I realise that I was using the CFRetain,  CFRelease,   function.
> > > > 
> > > > I guess that in gnustep  the  function is not the  same.
> > > 
> > > I don't think that  these  functions exist on GNUstep (although they  
>might).  
>
> >
> > >They  should just be sending a -retain / -release  message in non-GC  mode 
>on 
>
> >OS 
> >
> > >X.  In GC  mode, they increment the reference count and are   intended to 
> > >be 
>
> >used 
> >
> > >for things that are stored in memory that the  GC  can't  see.
> > > 
> > > David
> > 
> > 
> > In fact I have fix it to call  -retain/-release but still get the  same 
>error.
> > Using valgrind is quite  difficult because I have a  huge trace,  I am 
> > using 
>the 
>
> >
> > --leak-check.
> > Do you  have any tips?
> > 
> > Thanks a  lot
> > 
> >  --Matiheu
> 
> 
> After investigating I notice that NSWindow refuse to  initialize his 
attribute.
> Because of this:
> 
> 2011-04-18 10:45:25.318  gst[2522] Window already initialized 2
> 
> Do someone have an idea  why?
> 
> Thanks
> 
> > 
> > 
> > 
> > 
> > >   _______________________________________________
> > >  Etoile-discuss   mailing list
> > > [email protected]
> > > https://mail.gna.org/listinfo/etoile-discuss
> >  >
> >
> 
> --Mathieu
> 
> 
> _______________________________________________
> Etoile-discuss  mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
> 

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à