VB6 – Debugging User Errors

15 pts.
Tags:
VB
VB 6.0
VB6
I have a project that is compiled to an exe and tested on my machine.  When I distribute it to a user, they get: run-time error '5': Not valid routine call or argument The user tells me what they do to generate the error, but the same action doesn't generate an error for me.  What can I do to track this down and/or fix the problem for my user? Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Some dll or other type of file could be missing in the client machine.

Do the client and development machine have the same OS ? You could be using a function or procedure that takes different set of arguments when using the version installed on the client machine.

Have you identified the line of code that is causing this error ?

<a href=”http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx”>Sysinternal’s Process Monitor</a> is a tool that could help you identifying the call that is causing the error. Run it on the client machine, and run your program. When it crashes, stop capturing events with process monitor, and review the results.

——————

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Jatill
    The client OS is likely to be different than mine. Is there a way to include all the required files so that any code I write on my OS will work on theirs? I put together an installer using the package manager, but perhaps that is not enough. I have not identified which line is causing the error; just the error. This is what I should use the process monitor for? I'll give it a try. Thanks!
    15 pointsBadges:
    report
  • carlosdl
    Process Monitor will not identify the line of code, but it will probably help in identifying the function or library that is causing the error when called. Let us know if you find something.
    69,175 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following