Hi Erwin,
What's exact error mesage code and text? Are there any other code running between two calls to the function?
Does it happens if you call this function two times in a row? If that the case than most likely the problem is in DLL itself. It may not clean up correctly after the first call. The best solution would be to contact the author of the DLL. You can try to CLEAR DLLS cFunctionName and DECLARE before each call as a workaround.
>Hi there,
>
>I am using a third party DLL in my Fox program.
>After successfully declaring a function like;
>
>DECLARE INTEGER cFunctionName IN lcDLLDir+"\dllname.dll";
> integer, string, integer, integer
>
>I am able to use this function once.
>When I try to execute this code more than once I got an error messages
>that tells me the declare statement was not successfull.
>
>Is there anything I have to do? Cleaning up resources or something?
>
>Many thanks,
>
>
--sb--