What causes VB6 "Run-Time Error '5': Invalid Procedure Call or Argument"
Posted
by cundh2o
on Stack Overflow
See other posts from Stack Overflow
or by cundh2o
Published on 2010-03-16T13:32:02Z
Indexed on
2010/03/16
13:36 UTC
Read the original article
Hit count: 190
vb6
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
© Stack Overflow or respective owner