Valhalla Legends Forums Archive | Battle.net Bot Development | help with bot

AuthorMessageTime
tony
Hey when i try to run my bot after about 2 hours i get a error that reads: run-time error 40020. invalid operation at current state. dose anyone know how to fix this? it on a spam but it it says it right when it says connecting to MCP.
January 14, 2003, 2:31 PM
Grok
Maybe this.  Hope it helps, spammer.

WSAEINPROGRESS (10036)

Operation now in progress.

A blocking operation is currently executing. Windows Sockets only allows a single blocking operation to be outstanding per task (or thread), and if any other function call is made (whether or not it references that or any other socket) the function fails with the WSAEINPROGRESS error.

** If not that, then possibly this:

WSA_IO_PENDING (OS dependent)

Overlapped operations will complete later.

The program has initiated an overlapped operation which cannot be completed immediately. A completion indication will be given at a later time when the operation has been completed.

** My guess is the former.
January 14, 2003, 3:08 PM
Yoni
Invalid operation at current state? Sounds like a VB error, you didn't specify what language you use though?

Also, you didn't specify whether you have the source of the said bot or are using a binary.
January 14, 2003, 3:23 PM
MesiaH
meh..

if socket.state = 7 then
   do whatever u were origionally doing
end if

January 14, 2003, 5:16 PM
Yoni
7? Eww? What are symbolic constants for? :-/
January 14, 2003, 5:23 PM
Grok
symbolic constants are for symbolically representing constants.

glad to be of help to you, Yoni.
January 14, 2003, 5:35 PM
MesiaH
socket states in vb, simplified:

0 = closed
1 = open
2 = listening
3 = pending request
4 = resolving host name
5 = done resolving host name
6 = connecting to remote host
7 = connected to remote host
8 = closing connection to remote host
9 = error
January 14, 2003, 5:37 PM
Yoni
thx Grok ::)
January 14, 2003, 5:43 PM
RhiNo
thanx MesiaH that just helped me quite a bit now
January 14, 2003, 6:25 PM
SiMi
heh , i know gj MesiaH
January 14, 2003, 7:40 PM
MesiaH
ok guys, dont forget the </sarcasm>
January 14, 2003, 10:24 PM

Search