From: aa Date: 2003-08-28T04:52:14+09:00 Subject: Re: 1.8.0 pb Hi, yes, you are right... passing a self instance instead of class cause GC calling some alive functions (not crashed) thank you nobu nobu.nokada@softhome.net wrote: > Hi, > > At Wed, 27 Aug 2003 04:48:35 +0900, > thierry wilmot wrote: > >> >I can't see the intention of the code. Is rb_foo a subclass of >> >Class? Otherwise, you must not pass self to Data_Wrap_Struct(). >> >>rb_foo = rb_define_class("Foo", rb_cObject); >> >>the first arg of Data_Wrap_Struct() should be the class ref ? no ? > > > Yes. But you define a instance method "create" instead of a > class method. So self in foo_create() is an instance of Foo. > This certainly causes GC crashed. >