Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to open existing file in VB6 Pin
JC.KaNNaN5-Jan-10 22:59
JC.KaNNaN5-Jan-10 22:59 
AnswerRe: How to open existing file in VB6 Pin
Eddy Vluggen6-Jan-10 1:30
professionalEddy Vluggen6-Jan-10 1:30 
QuestionStackOverflowException [SOLVED] [modified] Pin
#realJSOP5-Jan-10 8:44
professional#realJSOP5-Jan-10 8:44 
AnswerRe: StackOverflowException Pin
MikeMarq5-Jan-10 9:14
MikeMarq5-Jan-10 9:14 
GeneralRe: StackOverflowException Pin
#realJSOP5-Jan-10 9:31
professional#realJSOP5-Jan-10 9:31 
QuestionHot to set Color as Red when Combo Style is set as other than DropDownList [modified] Pin
janaswamy uday5-Jan-10 6:44
janaswamy uday5-Jan-10 6:44 
AnswerRe: Hot to set Color as Red when Combo Style is set as other than DropDownList [modified] Pin
TheComputerMan6-Jan-10 15:33
TheComputerMan6-Jan-10 15:33 
QuestionProblem with UDPClient Receive function Pin
xairoy5-Jan-10 3:08
xairoy5-Jan-10 3:08 
Hallo,
I am developing an application where there is a source which sends UDP datagrams at a constant Interval (2 datagrams per second). I am receiving these datagrams in the following code:

EP = New IPEndPoint(IPAddress.Any, clsUDP.nListenOnPort)

' clsUDP.nListenOnPort=6466
UDPInput = New UdpClient(EP)
While clsMisc.ListenforUDP

Try
byt = UDPInput.Receive(EP)
..................
Catch ex As Exception<br />
        MessageBox.Show(ex.ToString)<br />
  <pre>End Try</pre><br />
End While

UDPInput.Close()

UDPInput = Nothing

EP = Nothing

the flag clsMisc.ListenforUDP is true as long as the application runs. This is set to false when an user Logs off.
This is working properly when a user logs in and logs off three times consecutively. But when an user logs in fourth time. I found out by debugging that the program hangs
after
byt = UDPInput.Receive(EP)
this line. I have also tried with asynchronous connection (Beginreceive and end receive) and also with
UDPInput.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer, 0) to flush the buffer before I read the byt but in vain. It is always the fourh time that the problem arises.

I am trying this to solve for the last 3 days without success. I shall be grateful if somebody helps me.
Thanks.
Roy
AnswerRe: Problem with UDPClient Receive function Pin
DaveAuld5-Jan-10 4:40
professionalDaveAuld5-Jan-10 4:40 
GeneralRe: Problem with UDPClient Receive function Pin
xairoy5-Jan-10 20:46
xairoy5-Jan-10 20:46 
QuestionHow to open openoffice document in vb 6.0 Pin
JC.KaNNaN5-Jan-10 2:28
JC.KaNNaN5-Jan-10 2:28 
AnswerRe: How to open openoffice document in vb 6.0 Pin
Dave Kreskowiak5-Jan-10 3:53
mveDave Kreskowiak5-Jan-10 3:53 
AnswerRe: How to open openoffice document in vb 6.0 Pin
Eddy Vluggen5-Jan-10 7:22
professionalEddy Vluggen5-Jan-10 7:22 
AnswerRe: How to open openoffice document in vb 6.0 Pin
JC.KaNNaN5-Jan-10 20:58
JC.KaNNaN5-Jan-10 20:58 
GeneralRe: How to open openoffice document in vb 6.0 Pin
Ashfield5-Jan-10 21:49
Ashfield5-Jan-10 21:49 
AnswerRe: How to open openoffice document in vb 6.0 Pin
David Skelly5-Jan-10 22:15
David Skelly5-Jan-10 22:15 
AnswerRe: How to open openoffice document in vb 6.0 [modified] Pin
JC.KaNNaN6-Jan-10 22:18
JC.KaNNaN6-Jan-10 22:18 
QuestionWeb Service with different file extensions Pin
DoxMan4-Jan-10 23:35
DoxMan4-Jan-10 23:35 
AnswerRe: Web Service with different file extensions Pin
Dimitri Witkowski5-Jan-10 3:56
Dimitri Witkowski5-Jan-10 3:56 
AnswerRe: Web Service with different file extensions Pin
Dave Kreskowiak5-Jan-10 3:56
mveDave Kreskowiak5-Jan-10 3:56 
QuestionHow to read data from serial port of a Thin Client Pin
sachin2 20104-Jan-10 22:54
sachin2 20104-Jan-10 22:54 
AnswerRe: How to read data from serial port of a Thin Client Pin
Dave Kreskowiak5-Jan-10 3:49
mveDave Kreskowiak5-Jan-10 3:49 
AnswerRe: How to read data from serial port of a Thin Client Pin
sachin2 20105-Jan-10 17:54
sachin2 20105-Jan-10 17:54 
GeneralRe: How to read data from serial port of a Thin Client Pin
Dave Kreskowiak6-Jan-10 1:54
mveDave Kreskowiak6-Jan-10 1:54 
AnswerRe: How to read data from serial port of a Thin Client Pin
sachin2 20106-Jan-10 21:44
sachin2 20106-Jan-10 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.