3 dec. 2016 kl. 13:05 skrev Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum <10353@lyskom.lysator.liu.se>:

You need to do this:

 JMP_BUF recovery;
 if (SETJMP(recovery)) {
   /* Something was thrown, value in throw_value */
   UNSETJMP(recovery);
   /* If you're not going to rethrow, you need to free */
   free_svalue(&throw_value);
   mark_free_svalue (&throw_value);
 } else {
   /* Do stuff that can throw */

   UNSETJMP(recovery);
 }

Thanks a bunch. Worked like a charm :)

Regards
-----------------------------
Pontus Östlund
Developer • Roxen AB
+46 70-662 81 69

www.roxen.com | twitter.com/roxen