Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Alex Peshkoff
On 12/06/11 21:14, Jesus Garcia wrote: >> >> The only way to have absolutely save UDFs is to run them in separate >> process. But I'm afraid that this will make them work much slower. >> >> Catching unhandled exceptions from foreign module is impossible in >> almost all cases. Code invoking UDFs d

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Alex Peshkoff
On 12/05/11 04:23, Geoff Worboys wrote: > So the power example would become: > > declare external function dPower > double precision by descriptor, double precision by descriptor, > double precision by descriptor, integer by descriptor > returns parameter 3 > returns exception 4 > entry_point 'pow

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Adriano dos Santos Fernandes
On 07/12/2011 07:31, Alex Peshkoff wrote: > On 12/05/11 04:23, Geoff Worboys wrote: >> So the power example would become: >> >> declare external function dPower >> double precision by descriptor, double precision by descriptor, >> double precision by descriptor, integer by descriptor >> returns p

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Alex Peshkoff
On 12/07/11 13:39, Adriano dos Santos Fernandes wrote: > On 07/12/2011 07:31, Alex Peshkoff wrote: >> On 12/05/11 04:23, Geoff Worboys wrote: >>> So the power example would become: >>> >>> declare external function dPower >>> double precision by descriptor, double precision by descriptor, >>> do

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Dimitry Sibiryakov
07.12.2011 10:46, Alex Peshkoff wrote: >> Why do we should add hacks to the new API to support them, now that we >> > have a replacement for it? > You are absolutely right, I have missed it. Does this new API handle exceptions thrown from UDR? Even if it is written in different language?.. C

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Adriano dos Santos Fernandes
On 07/12/2011 08:07, Dimitry Sibiryakov wrote: > 07.12.2011 10:46, Alex Peshkoff wrote: >>> Why do we should add hacks to the new API to support them, now that we have a replacement for it? >> You are absolutely right, I have missed it. > Does this new API handle exceptions thrown from U

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Alex Peshkoff
On 12/07/11 14:07, Dimitry Sibiryakov wrote: > 07.12.2011 10:46, Alex Peshkoff wrote: >>> Why do we should add hacks to the new API to support them, now that we have a replacement for it? >> You are absolutely right, I have missed it. >Does this new API handle exceptions thrown from UDR?

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Dimitry Sibiryakov
07.12.2011 11:15, Adriano dos Santos Fernandes wrote: >>Even if it is written in different >> language?.. Could you provide example engine handling exception raised in >> Delphi UDR?.. >> Could you provide example of UDR in Delphi at all?.. >> > I expect the "Delphi people" will work on it.

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Vlad Khorsun
>> I expect the "Delphi people" will work on it. > > No way, I'm afraid. I'm quite good in Delphi, but I have no idea how to > convert C++ > classes to Delphi classes. I can help. Regards, Vlad -- Cloud Services

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Pierre Y.
>>> I expect the "Delphi people" will work on it. >> >>   No way, I'm afraid. I'm quite good in Delphi, but I have no idea how to >> convert C++ >> classes to Delphi classes. > >    I can help. I'm very interrested in seeing how to use the new Firebird OO API in Delphi. We gave it a try two weeks

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Dimitry Sibiryakov
07.12.2011 11:40, Vlad Khorsun wrote: >>No way, I'm afraid. I'm quite good in Delphi, but I have no idea how to >> convert C++ >> > classes to Delphi classes. > I can help. I would prefer to leave this task to the author of the API. Just to make him to think twice next time. --

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Vlad Khorsun
>> I can help. > > I'm very interrested in seeing how to use the new Firebird OO API in > Delphi. We gave it a try two weeks ago and we only succeeded with the > getVersion() function ! Everything else generated errors or access > violations. Could you send to me your Delphi wrapper for the AP

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Alex Peshkoff
On 12/07/11 14:54, Pierre Y. wrote: I expect the "Delphi people" will work on it. >>> No way, I'm afraid. I'm quite good in Delphi, but I have no idea how to >>> convert C++ >>> classes to Delphi classes. >>I can help. > I'm very interrested in seeing how to use the new Firebird OO API

[Firebird-devel] [FB-Tracker] Created: (CORE-3693) "no current record for fetch operation"

2011-12-07 Thread Karol Bieniaszewski (JIRA)
"no current record for fetch operation" --- Key: CORE-3693 URL: http://tracker.firebirdsql.org/browse/CORE-3693 Project: Firebird Core Issue Type: Bug Reporter: Karol Bieniaszewski when i wor

Re: [Firebird-devel] Database shutdown when udf raises an exception

2011-12-07 Thread Pierre Y.
>> I'm very interrested in seeing how to use the new Firebird OO API in >> Delphi. We gave it a try two weeks ago and we only succeeded with the >> getVersion() function ! Everything else generated errors or access >> violations. > >    Could you send to me your Delphi wrapper for the API ?  I'll l