Click here to Skip to main content
15,893,266 members
Home / Discussions / C#
   

C#

 
Questioncan TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
abiemann23-Nov-09 12:44
abiemann23-Nov-09 12:44 
AnswerRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
April Fans24-Nov-09 0:32
April Fans24-Nov-09 0:32 
AnswerRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
Paulo Zemek24-Nov-09 1:15
mvaPaulo Zemek24-Nov-09 1:15 
GeneralRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
abiemann30-Nov-09 6:41
abiemann30-Nov-09 6:41 
QuestionWebbrowser control print preview not working for background color Pin
Shukra23-Nov-09 12:04
Shukra23-Nov-09 12:04 
AnswerRe: Webbrowser control print preview not working for background color Pin
Dave Kreskowiak23-Nov-09 12:52
mveDave Kreskowiak23-Nov-09 12:52 
AnswerRe: Webbrowser control print preview not working for background color Pin
Ravi Bhavnani23-Nov-09 13:55
professionalRavi Bhavnani23-Nov-09 13:55 
GeneralRe: Webbrowser control print preview not working for background color Pin
Shukra23-Nov-09 17:23
Shukra23-Nov-09 17:23 
AnswerRe: Webbrowser control print preview not working for background color Pin
Ravi Bhavnani23-Nov-09 17:47
professionalRavi Bhavnani23-Nov-09 17:47 
QuestionEmgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 8:55
Lynndah21223-Nov-09 8:55 
AnswerRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 10:18
mveDave Kreskowiak23-Nov-09 10:18 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 11:14
Lynndah21223-Nov-09 11:14 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 12:51
mveDave Kreskowiak23-Nov-09 12:51 
QuestionRead and Write a file at the same time? Pin
Tony496623-Nov-09 4:41
Tony496623-Nov-09 4:41 
AnswerRe: Read and Write a file at the same time? Pin
Eddy Vluggen23-Nov-09 4:44
professionalEddy Vluggen23-Nov-09 4:44 
AnswerRe: Read and Write a file at the same time? Pin
PIEBALDconsult23-Nov-09 5:02
mvePIEBALDconsult23-Nov-09 5:02 
GeneralRe: Read and Write a file at the same time? Pin
Tony496623-Nov-09 5:24
Tony496623-Nov-09 5:24 
GeneralRe: Read and Write a file at the same time? Pin
Ghydo23-Nov-09 6:57
Ghydo23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 8:02
dojohansen23-Nov-09 8:02 
GeneralRe: Read and Write a file at the same time? [modified] Pin
abiemann23-Nov-09 12:36
abiemann23-Nov-09 12:36 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 23:50
dojohansen23-Nov-09 23:50 
I suppose a memory-mapped file is faster if there is a very large number of interactions. And I don't think message queues are installed by default on non-server editions of Windows, at least not XP. If performance is paramount there's probably nothing that can beat shared memory!

On the other hand message queues are extremely flexible. It's straightforward to share one between any number of applications (either as producers or consumers), it supports distributed transactions, the apps and the queue itself can be on the same or different computers, running the same or different Windows versions, there is built-in support for preserving a message log, they can be easily used synchronously or asynchronously, and .NET has all the wrappers needed to make it easy to work with them.

Wikipedia (usually good for getting an overview)
http://en.wikipedia.org/wiki/Microsoft_Message_Queuing

MSDN (usually good for reference, rather variable IMO on describing "the big picture")
http://msdn.microsoft.com/en-us/library/ms978425.aspx

[EDIT: changed the MSDN link to one about .NET and MSMQ; originally linked to Win32 doc.]
AnswerRe: Read and Write a file at the same time? PinPopular
Alan N23-Nov-09 6:57
Alan N23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
Tony496624-Nov-09 3:53
Tony496624-Nov-09 3:53 
AnswerRe: Read and Write a file at the same time? Pin
Luc Pattyn23-Nov-09 14:04
sitebuilderLuc Pattyn23-Nov-09 14:04 
GeneralRe: Read and Write a file at the same time? Pin
Paulo Zemek24-Nov-09 1:30
mvaPaulo Zemek24-Nov-09 1:30 

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.