rb_cObject given to my extension by mswin32-ruby16.lib and rb_cObject in
Ruby itself are not the same.

I did not investigate the problem at all. Does anyone know what's wrong?