Re: [Firebird-devel] Handling exception from external plugins

2022-04-11 Thread Vasiliy Yashkov
Ok, now I get it. Thanks for the explanations! -- Vasiliy Yashkov Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Handling exception from external plugins

2022-04-11 Thread Alex Peshkoff via Firebird-devel
On 4/11/22 17:56, Dimitry Sibiryakov wrote: Vasiliy Yashkov wrote 11.04.2022 16:52: What is the right way to throw an exception?   Plugins (as any other DLL) is not supposed to throw exceptions ever. Yes, throwing directly (like in your code) is impossible. But there is a way to return an

Re: [Firebird-devel] Handling exception from external plugins

2022-04-11 Thread Dimitry Sibiryakov
Vasiliy Yashkov wrote 11.04.2022 16:52: What is the right way to throw an exception? Plugins (as any other DLL) is not supposed to throw exceptions ever. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] Handling exception from external plugins

2022-04-11 Thread Vasiliy Yashkov
Hi All! I have a simple external plugin that throws an exception: #include "firebird/Interface.h" using namespace Firebird; extern "C" void FB_DLL_EXPORT FB_PLUGIN_ENTRY_POINT(IMaster* master) { const auto status = master->getStatus(); ISC_STATUS vector[] = { isc_arg_gds, isc_random,