From: nobu.nokada@... Date: 2003-08-27T09:39:28+09:00 Subject: Re: 1.8.0 pb 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. -- Nobu Nakada