Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Yegg on October 25, 2004, 06:52 PM

Title: TCP Connect Error
Post by: Yegg on October 25, 2004, 06:52 PM
Ok, im not sure why but whenever i try connecting through TCPConnection, i get the following error:

Run-time Error '40006':

Wrong protocol or connection state for the requested transaction or request

When i hit Debug, the line of code that has the error is:

Form1.sckBnet.SendData Chr(1)
Title: Re: TCP Connect Error
Post by: Stealth on October 25, 2004, 08:25 PM
Most likely you tried to send information while the socket wasn't connected. You'll have to go into more detail about the situation if you want any more complicated help.