30 Apr 2012 22:03
Re: [C extension] Getting the associated exception instance after using rb_protect()
Iñaki Baz Castillo <ibc <at> aliax.net>
2012-04-30 20:03:56 GMT
2012-04-30 20:03:56 GMT
2012/4/30 Martin Boßlet <martin.bosslet <at> googlemail.com>: >> The problem is that the exception seems to remain "alive" in the >> thread, so when the thread ends the exception is raised! >> How to avoid that? this is: how to tell the thread "please forgive the >> last exception forever"? >> >> Thanks a lot. >> > > Untested, but again I think setting the active exception to nil by > issuing > > rb_set_errinfo(Qnil); > > should "swallow" the exception. However, there could be a more > elegant way to this... And again it properly works :) -- -- Iñaki Baz Castillo <ibc <at> aliax.net>
RSS Feed