Valhalla Legends Archive

Programming => General Programming => Topic started by: Lenny on November 22, 2003, 09:33 AM

Title: General Error
Post by: Lenny on November 22, 2003, 09:33 AM
"Run-time error '5':
Invalid procedure call or argument"

Does anyone know the common problems in VB code which is associated with this message?

This message only occurs occasionaly each time I test, is it possible that too many events could be occuring causing my program to crash?

When I use it to load 3 bots, everything seems to occur normally, but when I load higher than 4 this error occurs.

My code reacts the same way if I were to load 2 or 100.

Also, Is it possible to find the line of error after .exe was created and running?
Title: Re:General Error
Post by: Grok on November 22, 2003, 10:31 AM
Quote from: Lenny on November 22, 2003, 09:33 AM
"Run-time error '5':
Invalid procedure call or argument"

Does anyone know the common problems in VB code which is associated with this message?

This message only occurs occasionaly each time I test, is it possible that too many events could be occuring causing my program to crash?

When I use it to load 3 bots, everything seems to occur normally, but when I load higher than 4 this error occurs.

My code reacts the same way if I were to load 2 or 100.

So don't run more than one.

Quote
Also, Is it possible to find the line of error after .exe was created and running?

Erl
Title: Re:General Error
Post by: Lenny on November 22, 2003, 07:52 PM
Its not more than 1 .exe, my program loads multiple bots...
Title: Re:General Error
Post by: Kp on November 22, 2003, 09:47 PM
Quote from: Lenny on November 22, 2003, 07:52 PM
Its not more than 1 .exe, my program loads multiple bots...

For what purpose do you need that?  Just do like Grok suggested and don't run so many.