[Firebird-devel] IExternalFunctionImpl::dispose

2021-06-21 Thread Jiří Činčura
Hi *, Who's responsibility is to call IExternal[Function | Procedure | Trigger]Impl::dispose? Should the plugin do it i.e. in `closeAttachment` or is Firebird gonna do it when the Function/Procedure/Trigger is no longer used? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Deve

Re: [Firebird-devel] IExternalFunctionImpl::dispose

2021-06-21 Thread Jiří Činčura
And maybe same question for IExternalResultSetImpl. I'm asking because I see some weird behavior in terms of memory allocations. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] IExternalEngineImpl and references from IPluginFactoryImpl (eventual AV)

2021-06-21 Thread Jiří Činčura
This https://github.com/FirebirdSQL/firebird/commit/9491bc1a46728eb4e57c8f77e77fb62287a55036#diff-7825c87bb1e585c93d6710d23be7e0b912ad5cc2e51b42b985273c6f3206c4d9 commit seems to be interesting. Also on FB 4.0.0.2496 I seems to have balanced count of `addRef` and `release` counts. Is this a kno

Re: [Firebird-devel] IExternalFunctionImpl::dispose

2021-06-21 Thread Adriano dos Santos Fernandes
On 21/06/2021 05:48, Jiří Činčura wrote: > Hi *, > > Who's responsibility is to call IExternal[Function | Procedure | > Trigger]Impl::dispose? Should the plugin do it i.e. in `closeAttachment` or > is Firebird gonna do it when the Function/Procedure/Trigger is no longer used? > It should be th

Re: [Firebird-devel] Stored procedure call and parameter concatenation outside the parentheses

2021-06-21 Thread Omacht András
Hi Mark! Sorry for the delayed answer. Thanks for the explanation, I get it too, although it works a little weird. I tested it in IBExpert, it works "well" under ISQL. The IBExpert preprocessor seems to have misunderstood something. Thanks! András -Original Message- From: Mark Rottev

[Firebird-devel] Memory leak with external engine plugin

2021-06-21 Thread Jiří Činčura
Hi *, I think I have an example of memory leaking when using external engine plugin (3.0.7, 4.0.0). Here's as simple implementation as I can make it (sorry for probably non-idiomatic C++ code): https://gist.github.com/cincuranet/aa207081dc0d44e5d06c1a4890019307 . Then I create a dummy functio

Re: [Firebird-devel] Memory leak with external engine plugin

2021-06-21 Thread Adriano dos Santos Fernandes
On 21/06/2021 15:17, Jiří Činčura wrote: > Hi *, > > I think I have an example of memory leaking when using external engine plugin > (3.0.7, 4.0.0). > > Here's as simple implementation as I can make it (sorry for probably > non-idiomatic C++ code): > https://gist.github.com/cincuranet/aa207081

Re: [Firebird-devel] Memory leak with external engine plugin

2021-06-21 Thread Jiří Činčura
What is this gonna tell me? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Mon, Jun 21, 2021, at 20:55, Adriano dos Santos Fernandes wrote: > On 21/06/2021 15:17, Jiří Činčura wrote: > > Hi *, > > > > I think I have an example of memory leaking when using external engine > > plugin (3

Re: [Firebird-devel] Memory leak with external engine plugin

2021-06-21 Thread Adriano dos Santos Fernandes
On 21/06/2021 16:57, Jiří Činčura wrote: > What is this gonna tell me? > UDR engine uses Firebird memory pool which is destroyed when the plugin is unloaded. I cannot say the same is done with the CRT you are using, so you may have others memory leaks. Would also be good if you put something in

Re: [Firebird-devel] Authentication error connection shutdown

2021-06-21 Thread Ariel Álvarez
Hi, I have faced this error. I have created an issue. In my case waiting more than one minute helped: https://github.com/FirebirdSQL/firebird/issues/6865#issue-925444516 I will be happy to make some other test that can provide usefull information. Regards, Ariel El lun., 7 jun. 2021 6:46, Jiří

Re: [Firebird-devel] Memory leak with external engine plugin

2021-06-21 Thread Jiří Činčura
> I cannot say the same is done with the CRT you are using, so you may > have others memory leaks. Is this something I can test? And potentially do something about it? In real world other pieces might be using that. :( > Would also be good if you put something in your function to really known >