I am trying to trace a very difficult error. The error message is:
"Error 5 - Invalid procedure call or argument"
This error occurs when running the .EXE file ONLY, but when I run the program in the Development Environment, the error does NOT occur. I have put flags in the code to try and identify the range of code in which the error occurs, but am not having much luck as I can only test it in the .EXE mode and thus must recompile the program each time I make a change.
My basic question is this - what kind of error would give this type of message ONLY in the .EXE file and NOT in the development environment?
Any thoughts about either a diagnosis and/or a fix?