From: ts Date: 2005-08-29T18:28:44+09:00 Subject: Re: catching segmentation faults from Ruby >>>>> "I" == Iain Dooley writes: I> will crash ruby if there is no child of parent with name "widgetName". i I> know that there is rb_funcall_protect that allows you to trap errors, I> but the problem is that i'm not doing an rb_funcall. the functions are I> being called from with Qt/Ruby bindings. is there a way that i can trap I> all errors from the ruby interpreter to prevent segfaults in dynamically I> edited code from crashing the program? Look at rb_eval_string_protect(), rb_protect() Guy Decoux