What causes VB6 "Run-Time Error '5': Invalid Procedure Call or Argument"
- by cundh2o
In VB6, users occasionally receive this error and I am unable to reproduce it.
Run-Time Error '5': Invalid Procedure Call or Argument
I am referencing the "MSWord 10 Object Library" and sometimes this error occurs at some point after the application has opened MSWord 2002. However, this app has referenced the MSWord 10 Object Library for years, and this error just started occurring in the last few months.
I am assuming I have introduced a bug somewhere, but no idea what might be causing it. The error does not occur very often and cannot be reproduced by a user when I am standing there. The error forces the app to totally shut down.
Users are running Windows XP