TIBCTraceService - memory usage

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

TIBCTraceService - memory usage

Post by tsteinmaurer » Fri 11 Nov 2011 06:05

Hello,

I don't have the source, so I'm here to check, if TIBCTraceService internally buffers somehow received lines when using GetNextLine. The reason why I'm asking is, when running a trace service for quite some time, and then freeing a TIBCTraceService object, it looks like that quite some memory is released then.

Thanks,
Thomas

AndreyZ

Post by AndreyZ » Fri 11 Nov 2011 09:22

Hello,

The TIBCTraceService componenty allocates the buffer with the size that is determined by the TIBCTraceService.BufferSize property only once, and uses it to return data. When TIBCTraceService is freed, the buffer is freed as well.

tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

Post by tsteinmaurer » Fri 11 Nov 2011 10:28

Hi!

So, there is no chance that memory accumulates if e.g. TIBCTraceService is running for days?

Thanks,
Thomas

AndreyZ

Post by AndreyZ » Fri 11 Nov 2011 11:13

We don't see the way it may happen.

tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

Post by tsteinmaurer » Fri 11 Nov 2011 11:20

Thanks!

Post Reply