From: ts Date: 2005-08-29T20:29:58+09:00 Subject: Re: catching segmentation faults from Ruby >>>>> "I" == Iain Dooley writes: I> but surely i can't call: I> rb_protect(app.exec(),VALUE ?,RESULT ?); /* Something like this */ static VALUE call_exec_for_app(QApplication *app) { return app->exec(); } /* ... */ int status; VALUE res; /* ... */ res = rb_protect(call_exec_for_app, (VALUE)&app, &status); if (status) { /* there is a ruby error */ } /* ... */ Guy Decoux