Click here to Skip to main content
15,892,537 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
Gerry Schmitz22-Sep-16 7:12
mveGerry Schmitz22-Sep-16 7:12 
GeneralRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
achimschoen22-Sep-16 22:17
professionalachimschoen22-Sep-16 22:17 
GeneralRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
Gerry Schmitz24-Sep-16 6:16
mveGerry Schmitz24-Sep-16 6:16 
AnswerRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
Bernhard Hiller22-Sep-16 21:02
Bernhard Hiller22-Sep-16 21:02 
AnswerRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
Pete O'Hanlon22-Sep-16 21:41
mvePete O'Hanlon22-Sep-16 21:41 
GeneralRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
achimschoen22-Sep-16 21:57
professionalachimschoen22-Sep-16 21:57 
GeneralRe: interoperation / Loading and unloading WPF assembly from arbitrary path Pin
Pete O'Hanlon23-Sep-16 2:29
mvePete O'Hanlon23-Sep-16 2:29 
QuestionTcpClient timeout delay Pin
Member 1263260115-Sep-16 19:50
Member 1263260115-Sep-16 19:50 
For TCPClient set property ReceiveTimeout in 1 ms.
But time from try read stream to catch IOException is about 500ms.
Why is this? What way can decrise this time?

static void Main(string[] args)
 {
     byte[] b = new byte[1];

     TcpClient tc = new TcpClient("127.0.0.1", 5000);
     tc.ReceiveTimeout = 1;
     int tick = Environment.TickCount;
     try
     {
         tc.GetStream().Read(b, 0, 1);
     }
     catch (System.IO.IOException)
     {
         Console.WriteLine("IOException");
         Console.WriteLine("Tick time {0}", Environment.TickCount - tick);
     }
     Console.ReadLine();
 }


Output:
IOException
Tick time 530

modified 16-Sep-16 5:38am.

QuestionRe: TcpClient timeout delay Pin
Richard MacCutchan15-Sep-16 22:38
mveRichard MacCutchan15-Sep-16 22:38 
AnswerRe: TcpClient timeout delay Pin
Member 1263260115-Sep-16 22:50
Member 1263260115-Sep-16 22:50 
GeneralRe: TcpClient timeout delay Pin
Richard MacCutchan15-Sep-16 23:18
mveRichard MacCutchan15-Sep-16 23:18 
AnswerRe: TcpClient timeout delay Pin
Bernhard Hiller16-Sep-16 0:16
Bernhard Hiller16-Sep-16 0:16 
GeneralRe: TcpClient timeout delay Pin
Member 1263260116-Sep-16 0:23
Member 1263260116-Sep-16 0:23 
AnswerRe: TcpClient timeout delay Pin
Eddy Vluggen16-Sep-16 3:03
professionalEddy Vluggen16-Sep-16 3:03 
GeneralRe: TcpClient timeout delay Pin
Member 1263260118-Sep-16 19:03
Member 1263260118-Sep-16 19:03 
GeneralRe: TcpClient timeout delay Pin
Eddy Vluggen18-Sep-16 23:44
professionalEddy Vluggen18-Sep-16 23:44 
AnswerRe: TcpClient timeout delay Pin
Gerry Schmitz17-Sep-16 6:24
mveGerry Schmitz17-Sep-16 6:24 
GeneralRe: TcpClient timeout delay Pin
Eddy Vluggen17-Sep-16 8:03
professionalEddy Vluggen17-Sep-16 8:03 
GeneralRe: TcpClient timeout delay Pin
Gerry Schmitz17-Sep-16 9:56
mveGerry Schmitz17-Sep-16 9:56 
GeneralRe: TcpClient timeout delay Pin
Eddy Vluggen17-Sep-16 10:05
professionalEddy Vluggen17-Sep-16 10:05 
GeneralRe: TcpClient timeout delay Pin
Gerry Schmitz17-Sep-16 15:54
mveGerry Schmitz17-Sep-16 15:54 
GeneralRe: TcpClient timeout delay Pin
Eddy Vluggen18-Sep-16 0:56
professionalEddy Vluggen18-Sep-16 0:56 
GeneralRe: TcpClient timeout delay Pin
Gerry Schmitz18-Sep-16 6:31
mveGerry Schmitz18-Sep-16 6:31 
GeneralRe: TcpClient timeout delay Pin
Eddy Vluggen18-Sep-16 6:46
professionalEddy Vluggen18-Sep-16 6:46 
GeneralRe: TcpClient timeout delay Pin
Gerry Schmitz18-Sep-16 7:20
mveGerry Schmitz18-Sep-16 7:20 

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.