From: ptkwt@... (Phil Tomson) Date: 2005-11-04T14:37:08+09:00 Subject: Re: In an extension, doing a Data_Make_Struct and getting value back In article , JSW wrote: >I have done Data_Make_Struct(klass, c-type, 0, free(), c_var*) and now I >want to get the data back so I do a Data_Get_Struct( ruby_Var, c-type, >c_var*) and it says that its the wrong type it's "klass" and should be >"Data". > >I know I'm missing a very important (probably simple) step here, but I can't >figure out what it is. > >Anyone have a clue? > Could you post the actual code? I notice above that you have: Data_Make_Struct(klass, c-type, 0, free(), c_var*) Whereas the pickaxe says it should be: Data_Make_Struct(klass, c-type, 0, free(), c_type*) Not sure if that's an issue or not... Phil