From: Tridib Bandopadhyay Date: 2012-04-03T04:18:28+09:00 Subject: TypeError Message. Help required I have created an extension and within the extension file I have declared one function like- VALUE free(T * self, VALUE name) //T is the struct { free(StringValuePtr(name)); } rb_define_method(hw_cMyClass, "free", talloc_free,0); And from *.rb file I am calling the free function like t.free() But its giving me error like- rungc.rb:10:in `free': can't convert false into String (TypeError) from rungc.rb:10 Can anyone tell me what I am doing wrong? ANd how to fix it? Regards Tridib -- Posted via http://www.ruby-forum.com/.