On 28/11/2013 12:50, Fabiano - Desenvolvimento SCI wrote:
I read somewhere that you must include "Threads" in your uses clause
to ensure multithread memory allocation!
Google for it (USD, DELPHI, FIREBIRD, THREAD, USES).
MAYBE your random problem is when 2 concurrent users uses your UDF
function and try to allocate/dispose memory.
I was imagining something along those lines before I'd seen the code and
knowing nothing about Delphi ... but having seen similar sounding
problems elsewhere ...
--
Tim Ward