15 pts.
 VB6 – Debugging User Errors
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.

Software/Hardware used:
ASKED: January 11, 2010  1:59 PM
UPDATED: January 11, 2010  4:10 PM

Answer Wiki:
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. ------------------
Last Wiki Answer Submitted:  January 11, 2010  2:49 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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.

 63,535 pts.