From: Peter Zotov Date: 2009-03-25T03:09:38+09:00 Subject: Re: Strange bug in irb1.9 Quoting "Robert Klemme" : > Spontaneously two things come to mind: garbage collection (because > of the seemingless random timing) and real threads (which are > introduced in 1.9). Maybe your cleanup code is not thread safe or > does not play well with concurrent GC (not sure whether the 1.9 > runtime really does this but it uses native threads IIRC). Disabling GC solved this problem. I think only this Data_Wrap_Struct(rb_cObject, 0, 0, setting) place of code can be buggy. I passed NULL to "free" parameter because I do not allocate memory for setting structure and do not free it (not sure what will be if it is freed by library, probably I need to make some checks). What do I need to pass as destructor in this case? -- WBR, Peter Zotov