A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ocaml/ocaml/issues/9026 below:

C++ exceptions are not caught on macOS · Issue #9026 · ocaml/ocaml · GitHub

When interfacing with C++ code, exceptions that are supposed to be caught within the C++ code itself are not caught on macOS.

try {
  // throw something
} catch (...) {
  // control does not come here at all
}

I have attached a zip file with an independent + miniature test case to reproduce the problem. Please check the Readme.md of the zip file.

The same program on macOS produces libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: This is not caught on macOS, why?, but on Ubuntu produces Exception successfully caught.

OCamlCppExn.zip


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4