Subject | Re: Shutdown engine with an exception inside a udf dll |
---|---|
Author | hvlad |
Post date | 2011-09-08T18:48:33Z |
--- In firebird-support@yahoogroups.com, Jesus Garcia wrote:
Different models of exception handling in different compilers of different languages and different OS'es.
Run-time performance overhead.
Etc, etc, etc...
Regards,
Vlad
>Any kind of exception *must* be handled inside UDF.
> Hello, is normal to crash the engine whe an exception is raised inside a udf dll or must be catch by the engine?
> 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