Subject | FireBird UDF's Thread Safe ... |
---|---|
Author | pythianjdi |
Post date | 2002-05-27T15:53:29Z |
Hi all,
i need to code some udf's for FireBird/Windows. In the udf's i need
to use some unit local variables for calculation's.
In the IBPhoenix ( http://www.ibphoenix.com/ibp_howto5.html )i read
an article on this topic, wich among other things, it suggest the use
of the "threadvar" instead of "var". But in the Delphi 6 Enterprise
Help, the use of the "threadvar" is discouraged in dll ( in bpl it's
ok ).
Snipped from the Delphi Help :
which is true ?
Use or not Use the "threadvar" on a dll/udf ?
Dimitris Ioannidis
PS: Sorry for my English ...
i need to code some udf's for FireBird/Windows. In the udf's i need
to use some unit local variables for calculation's.
In the IBPhoenix ( http://www.ibphoenix.com/ibp_howto5.html )i read
an article on this topic, wich among other things, it suggest the use
of the "threadvar" instead of "var". But in the Delphi 6 Enterprise
Help, the use of the "threadvar" is discouraged in dll ( in bpl it's
ok ).
Snipped from the Delphi Help :
>>Do not create pointer- or procedural-type thread variables, and doThe "threadvar" approache is suitable for my need, so i want to ask
>>not use thread variables in dynamically loadable libraries (other
>>than packages).
which is true ?
Use or not Use the "threadvar" on a dll/udf ?
Dimitris Ioannidis
PS: Sorry for my English ...