From: Iain Dooley Date: 2005-08-29T20:35:16+09:00 Subject: Re: catching segmentation faults from Ruby ts wrote: >>>>>>"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 */ > } > /* ... */ > excellent!! i thought that rb_protect was only for ruby methods. i'll try that out. thanks very much iain