From: Paul Brannan Date: 2003-06-20T02:07:19+09:00 Subject: Re: rb_protect and longjmp On Thu, Jun 19, 2003 at 08:17:53AM +0900, Sean O'Dell wrote: > Looking for some insight about rb_protect and the longjmp calls. > > Is rb_protect supposed to always return back to the caller? I'm > wrapping calls in rb_protect wherever I can in my C++ application, but > it seems that rb_protect doesn't always return. When rb_protect "doesn't return" what does happen? Does your code get jumped over or does the program hang or does it crash? I know that if you throw a C++ exception from inside an rb_protect call, then on some platforms (g++ under Linux is one), std::terminate() will be called. Paul