Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCalling javascript function from VBscript Pin
Ash_VCPP29-Jan-10 21:34
Ash_VCPP29-Jan-10 21:34 
AnswerRe: Calling javascript function from VBscript Pin
Richard MacCutchan29-Jan-10 22:32
mveRichard MacCutchan29-Jan-10 22:32 
AnswerRe: Calling javascript function from VBscript Pin
Eddy Vluggen30-Jan-10 0:48
professionalEddy Vluggen30-Jan-10 0:48 
QuestionTcpListener problem Pin
AliAmjad29-Jan-10 20:50
AliAmjad29-Jan-10 20:50 
AnswerRe: TcpListener problem [modified] Pin
DaveAuld29-Jan-10 21:23
professionalDaveAuld29-Jan-10 21:23 
GeneralRe: TcpListener problem Pin
AliAmjad29-Jan-10 21:45
AliAmjad29-Jan-10 21:45 
AnswerRe: TcpListener problem Pin
DaveAuld29-Jan-10 22:04
professionalDaveAuld29-Jan-10 22:04 
AnswerRe: TcpListener problem Pin
Luc Pattyn30-Jan-10 2:02
sitebuilderLuc Pattyn30-Jan-10 2:02 
Hi,

Stream.Read() is a blocking call. Read the documentation, it contains:
"read; however, if an exception occurs, the current position within the stream remains unchanged. Implementations return the number of bytes read. The return value is zero only if the position is currently at the end of the stream. The implementation will block until at least one byte of data can be read, in the event that no data is available. Read returns 0 only when there is no more data in the stream and no more is expected (such as a closed socket or end of file)."

So your program is waiting inside the Read() method for more data to become available. You may have to restructure your communication, maybe use asyncrhonous calls, another thread, a time-out, it all depends on the circumstances.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


AnswerRe: TcpListener problem Pin
Dave Kreskowiak30-Jan-10 6:30
mveDave Kreskowiak30-Jan-10 6:30 
GeneralRe: TcpListener problem Pin
AliAmjad31-Jan-10 1:49
AliAmjad31-Jan-10 1:49 
QuestionBindingSource Pin
wikus7029-Jan-10 1:00
wikus7029-Jan-10 1:00 
AnswerRe: BindingSource Pin
Wayne Gaylard29-Jan-10 2:13
professionalWayne Gaylard29-Jan-10 2:13 
GeneralRe: BindingSource Pin
wikus7031-Jan-10 19:25
wikus7031-Jan-10 19:25 
GeneralRe: BindingSource Pin
Wayne Gaylard1-Feb-10 0:54
professionalWayne Gaylard1-Feb-10 0:54 
GeneralRe: BindingSource Pin
wikus701-Feb-10 2:47
wikus701-Feb-10 2:47 
GeneralRe: BindingSource Pin
Wayne Gaylard1-Feb-10 21:16
professionalWayne Gaylard1-Feb-10 21:16 
QuestionHow to access an unknown file format? Pin
Sonhospa28-Jan-10 23:24
Sonhospa28-Jan-10 23:24 
AnswerRe: How to access an unknown file format? Pin
Dave Kreskowiak29-Jan-10 2:23
mveDave Kreskowiak29-Jan-10 2:23 
GeneralRe: How to access an unknown file format? Pin
Sonhospa29-Jan-10 5:30
Sonhospa29-Jan-10 5:30 
GeneralRe: How to access an unknown file format? Pin
Richard MacCutchan29-Jan-10 6:41
mveRichard MacCutchan29-Jan-10 6:41 
QuestionZedGraph question Pin
TheComputerMan28-Jan-10 3:56
TheComputerMan28-Jan-10 3:56 
QuestionReferences in Class Library Pin
Jay Royall27-Jan-10 23:52
Jay Royall27-Jan-10 23:52 
AnswerRe: References in Class Library Pin
Gideon Engelberth28-Jan-10 2:51
Gideon Engelberth28-Jan-10 2:51 
GeneralRe: References in Class Library Pin
Jay Royall28-Jan-10 4:49
Jay Royall28-Jan-10 4:49 
QuestionDelete record using ADODC in vb6 Pin
offroaderdan27-Jan-10 23:48
offroaderdan27-Jan-10 23:48 

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.