Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: botmaster on February 04, 2004, 02:05 AM

Title: Run-time error '5' invalid procedure call or argument
Post by: botmaster on February 04, 2004, 02:05 AM
I have this problem and I have tried to fix it many times.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q242/3/47.asp&NoWebContent=1 (http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q242/3/47.asp&NoWebContent=1)

is all I can find on it...is there any way I can detect where it is happing in my code? I have like 6timers and I have tried many things... I have yet to see the error but other people have had it happen to them many times. Also have seen the screen shots any idea why this may happen?


Adron: url tag
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: Adron on February 04, 2004, 03:30 AM
You could compile your program to native code and generate a pdb for it. Then either have your users generate a dump of it when the dialog box is up, or ask me for my vbdump.dll that generates the dump automagically. You can then load the dump into windbg and find the line that causes the error.
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: botmaster on February 04, 2004, 04:30 AM
if I could get a copy of your vbdump.dll that would help me out alot. As of right now I am using remote admin to try and fix the problem :-/
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: Adron on February 04, 2004, 01:43 PM
Is that e-mail address valid?
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: botmaster on February 04, 2004, 02:44 PM
Quote from: Adron on February 04, 2004, 01:43 PM
Is that e-mail address valid?
check your PM's.
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: UserLoser. on February 04, 2004, 04:51 PM
Quote from: Adron on February 04, 2004, 03:30 AM
You could compile your program to native code and generate a pdb for it. Then either have your users generate a dump of it when the dialog box is up, or ask me for my vbdump.dll that generates the dump automagically. You can then load the dump into windbg and find the line that causes the error.

Post it here!
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: Adron on February 04, 2004, 05:07 PM
Quote from: UserLoser. on February 04, 2004, 04:51 PM
Quote from: Adron on February 04, 2004, 03:30 AM
You could compile your program to native code and generate a pdb for it. Then either have your users generate a dump of it when the dialog box is up, or ask me for my vbdump.dll that generates the dump automagically. You can then load the dump into windbg and find the line that causes the error.

Post it here!

I like to go slowly. If I run into any trouble with helping botmaster fix his bugs, I can adjust vbdump before releasing it to the world. I also like to have some direct feedback when releasing something new, instead of just posting it on a webpage somewhere.
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: Mesiah / haiseM on February 04, 2004, 06:42 PM
That is kinda funny, using win debug for a vb application. the debug tool is insane compared to visual basic, so if your a beginner to visual basic, have fun..

But hey, everything can be learned, right?
Title: Re:Run-time error '5' invalid procedure call or argument
Post by: Adron on February 04, 2004, 07:26 PM
Quote from: MesiaH on February 04, 2004, 06:42 PM
That is kinda funny, using win debug for a vb application. the debug tool is insane compared to visual basic, so if your a beginner to visual basic, have fun..

But hey, everything can be learned, right?

Yes, and it's easy to use windbg to find your VB bugs. All you have to do is check the call stack and double click to get to the failing line. From that you can usually immediately see what the problem is.