Subject | REPOST: Memory management problems with UDF on Firebird |
---|---|
Author | mydejamail |
Post date | 2002-08-02T22:52:42Z |
I have a written a UDF in Delphi 3 which concatenates strings,
using PChars.
However there seems to be problem with memory allocation.
When I run the UDF sequentially, some of the results have
an extra character on them. Further checking reveals that
the extra characters are from the results of previous calls
to the UDF whose results have those characters in that position.
I am using the ib_util.pas include and ib_util.dll.
I made the problem go away by initialising the result string with
nulls before copying the result there.
I can't help feeling there could be a lot of memory leakage.
I am sure I am using the right dll version 8/03/2000 16:30
version,6.2.0.794
Any help?
using PChars.
However there seems to be problem with memory allocation.
When I run the UDF sequentially, some of the results have
an extra character on them. Further checking reveals that
the extra characters are from the results of previous calls
to the UDF whose results have those characters in that position.
I am using the ib_util.pas include and ib_util.dll.
I made the problem go away by initialising the result string with
nulls before copying the result there.
I can't help feeling there could be a lot of memory leakage.
I am sure I am using the right dll version 8/03/2000 16:30
version,6.2.0.794
Any help?