You might want to check out
http://www.activevfp.com/dev/dna08.htm to get some tech details on mtdlls, although I don't think he mentions anything about temp files specifically. Also, the VFPSP3.chm talks about some weird things that can happen to VFP mtdlls under certain circumstances (but, this is an old file).
>Great thought. I just tried it and it still has the problem, though the temp files are created in the new spot. The scenario that produces it seems to have the following:
>
>1) compiled as a MTDLL
>2) run in-process by an app that changes the default folder
>3) DLL is not in the same folder as the app running it.
>4) something about the phase of the moon and the latest score of the NY Yankees
>
>The DLL does however know where it started up, where to find the data, etc...
>
>Mike