From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-06-20T00:46:06+09:00 Subject: Re: rb_protect and longjmp On Thu, 19 Jun 2003 16:31:01 +0000, Sean O'Dell wrote: > 1) How do I raise a ruby exception such that the ruby script gets the > exception, but my C/C++ code is allow to continue? http://www.rubygarden.org/ruby?RubyApi/RbProtect see the implementation of 'Funcall' http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/metaeditor/experiments/cpp_embed_ruby/test/embed_swig/source/rubycpp.cpp?rev=1.6&content-type=text/vnd.viewcvs-markup > 2) I think there's a bug somewhere in rb_funcall; it doesn't seem to notice > bad object VALUE's. I don't do diff's or create patches that often so I'm > fuzzy on the procedure, but if I find where it's happening and can fix it > myself, I'll try and submit the fix. Try rip my backtrace procedure from the link above, this can hopefully help you locate the problem :-) -- Simon Strandgaard