# Erratic behaviour when raising exception from foreign code

**URL:** <https://swi-prolog.discourse.group/t/erratic-behaviour-when-raising-exception-from-foreign-code/7480>\
**Category:** Help!\
**Tags:** how-to\
**Created:** [May 28, 2024, 3:29pm UTC](https://swi-prolog.discourse.group/t/erratic-behaviour-when-raising-exception-from-foreign-code/7480 "2024-05-28T15:29:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [May 31, 2024, 6:56am UTC](https://swi-prolog.discourse.group/t/erratic-behaviour-when-raising-exception-from-foreign-code/7480/10 "2024-05-31T06:56:41Z")

</div>

3 posts were split to a new topic: [A safer C API](https://swi-prolog.discourse.group/t/a-safer-c-api/7485)

---

_[View the full topic](https://swi-prolog.discourse.group/t/erratic-behaviour-when-raising-exception-from-foreign-code/7480)._
