>>>I just implemented some data encryption using VfpEncryption71.fll. It seems to work fine, but when I close the application, I get an error "API call caused an exception." I believe it is on the line of code that says "SET LIBRARY TO." Any ideas?
>>
>>Just put the whole code in try/catch block and ignore this error. You can also retry if you get this error.
>
>But why does it happen? Can I make it stop?
Not really, AFAIK. It's intermittent problem hard to find, that can be safely ignored.
I vaguely remember having the same problem long, long time ago and Sergey suggesting some MS KB that solved the issue for us then.
If it's not broken, fix it until it is.
My Blog