Subject Re: Shutdown engine with an exception inside a udf dll
Author hvlad
--- In firebird-support@yahoogroups.com, Jesus Garcia wrote:
>
> Hello, is normal to crash the engine whe an exception is raised inside a udf dll or must be catch by the engine?

Any kind of exception *must* be handled inside UDF.

> I had a udf with the function power. If i call power with a negative valué in the base parameter an exception is raised and the engine is stopped. Why not catch the exception To prevent the problem and raise it like any exception?

Because of a lot of reasons.
Different models of exception handling in different compilers of different languages and different OS'es.
Run-time performance overhead.
Etc, etc, etc...

> I think this is a bug in the engine.

Nope.

Regards,
Vlad