Hi,

In message "[ruby-talk:13610] Data_Get_Struct wants a DATA... but I don't have one?"
    on 01/04/12, Colin Steele <colin / webg2.com> writes:

|I've got a headscratcher for y'all.  I have a C extension which uses
|Data_Make_Struct, and then calls rb_obj_call_init.  In my init
|function, I try to pull out my data pointer using Data_Get_Struct, but
|it pukes in rb_check_type, claiming I'm passing it the wrong type of
|data.
|
|This is almost identical to the example in the pickaxe book... what am
|I missing?

You didn't redefine "new".  replace

|    rb_define_method(cProcess, "new", process_new, 1);

by

|    rb_define_singleton_method(cProcess, "new", process_new, 1);

							matz.