From: Jan Bernhardt Date: 2003-05-15T07:08:20+09:00 Subject: Re: Embedding/GC/heap corruption problem On Wed, 14 May 2003 23:47:33 +0200, Simon Strandgaard wrote: > OK.. try this :-) > > void messages_init() { > message = rb_eval_string("Message.new"); args = rb_iv_get(message, > "@args"); > message_registry = rb_eval_string("MessageRegistry.instance"); > rb_gc_register_address(&message); > rb_gc_register_address(&args); > rb_gc_register_address(&message_registry); > } > } > > -- > Simon Strandgaard Unfortunately, this didn't help also. And by looking at how the Global_List and its related function are implemented I would have been very surprised if that did the trick... Maybe the problem lies somewhere completely different. But I'm pretty sure that the other code is correct. - Jan.