>KM,
>What version of VFP are using and what service pack is installed. I thought the problem may have been due to Cryptor not being thread safe and that might cause a problem. That still might be the case eventually (I can't find any documentation on it one way or the other) but it's not the case here.
>
>I tested this using my setup (VFP6 SP5 running on NT4 SP6). I built a multi-threaded DLL and created a method called Initialize. The only thing the method did was set library to C40FOX60.FLL additive. It worked perfectly (no errors). I tested this using the COM DLL by itself and installed under Transaction Server and neither configuration gave me any problems.
>
>SP 3,4 and 5 for VFP fixed several multi-threaded DLL issues. If you don't have them installed, I suggest you get them. Check out the MS VFP site for the downloads (
http://msdn.microsoft.com/vfoxpro).
>
>HTH.
That is VFP6 SP3 running on Windows 98. This is the init method of the dll:
function init
set text on to errorlog.txt
on error \<< message() >>, << error() >>
set library to c40fox60.fll
endfunc
I tested the DLL with a VB script file Windows 98.
KM