>Hi Dave,
>
>You run your app via a
desktop link, yes?
Correct.
>Where are the DLLs stored?
C:\Program Files (x86)\Common Files\Microsoft Shared\VFP
>If you run the app directly from explorer in it's folder (not via link), what happens?
It also occurs if run directly from an FIle Explorer window, or from the Start menu. The only fix is to shut down open windows.
>Generate an global ON ERROR that gives better error return, and compile with
Debug Info on.
I'll look into that. Thanks for that suggestion.
>
>Lutz
>
>>Folks,
>>
>>A VFP application I've developed generates an intermittent error when the program executable is run from its desktop icon. The program error is ‘Operator/Operand Type Mismatch.’ (see image). When this error occurs, the program fails to run.
>>
>>What’s frustrating and confusing for me is that this error sometimes happens and sometimes not. When the app fails to run, it’s commonly due to an open file folder window or an open window for an FTP internet location. The program run will only run after closing these windows.
>>
>>I suspect this issue relates to the application not finding the VFP Run-Time Resource DLLs (e.g: VFP9RENU.DLL) or not finding the correct DLLs for the application. But why this happens is a mystery.
>>
>>Can anyone advise on what’s causing the problem, and more importantly, what the solution is.
>>
>>Any guidance is welcome,
>
>
>>Dave
>>
>>ps. I do have the executable path set in the icon’s “Start In” property.
Dave