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

.NET (Core and Framework)

 
QuestionBuilding a Compiler using Reflection.Emit Pin
PP19724-Feb-10 0:42
PP19724-Feb-10 0:42 
QuestionClipboard through COM Pin
Adriaan Davel3-Feb-10 21:37
Adriaan Davel3-Feb-10 21:37 
AnswerRe: Clipboard through COM Pin
Richard MacCutchan3-Feb-10 22:04
mveRichard MacCutchan3-Feb-10 22:04 
QuestionHow can an application create a remote GUI. [modified] Pin
User 592413-Feb-10 20:49
User 592413-Feb-10 20:49 
QuestionProblem with TCP socket in Windows service [modified] Pin
mavrick233-Feb-10 18:51
mavrick233-Feb-10 18:51 
AnswerRe: Problem with TCP socket in Windows service Pin
SeMartens3-Feb-10 21:25
SeMartens3-Feb-10 21:25 
GeneralRe: Problem with TCP socket in Windows service Pin
mavrick233-Feb-10 21:52
mavrick233-Feb-10 21:52 
GeneralRe: Problem with TCP socket in Windows service Pin
SeMartens3-Feb-10 22:01
SeMartens3-Feb-10 22:01 
There is no need to start a seperate thread. Since you are using an asynchronous socket you can easily start listening. The while-loop with the waitone is in the example program, because the application will stop when the main-method ends. Since the service is running as long it is not stopped, the socket will listen also. So you should remove the while-loop with the wait-statement. Don't forget to close the socket when the service stops.

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Problem with TCP socket in Windows service Pin
mavrick233-Feb-10 23:18
mavrick233-Feb-10 23:18 
GeneralRe: Problem with TCP socket in Windows service Pin
SeMartens4-Feb-10 1:46
SeMartens4-Feb-10 1:46 
QuestionHow To Create Printer Driver Pin
Anubhava Dimri3-Feb-10 18:47
Anubhava Dimri3-Feb-10 18:47 
AnswerRe: How To Create Printer Driver Pin
Eddy Vluggen3-Feb-10 21:58
professionalEddy Vluggen3-Feb-10 21:58 
GeneralRe: How To Create Printer Driver Pin
Anubhava Dimri3-Feb-10 22:03
Anubhava Dimri3-Feb-10 22:03 
GeneralRe: How To Create Printer Driver Pin
Richard MacCutchan3-Feb-10 22:06
mveRichard MacCutchan3-Feb-10 22:06 
QuestionEnterprise Library Configuration tool Pin
Peter Trevor3-Feb-10 10:14
Peter Trevor3-Feb-10 10:14 
QuestionEntity data model with Master-detail scenario [modified] Pin
Ravi Mori3-Feb-10 3:26
Ravi Mori3-Feb-10 3:26 
AnswerRe: Entity data model with Master-detail scenario Pin
Dave Kreskowiak3-Feb-10 3:46
mveDave Kreskowiak3-Feb-10 3:46 
GeneralRe: Entity data model with Master-detail scenario Pin
Ravi Mori3-Feb-10 3:57
Ravi Mori3-Feb-10 3:57 
GeneralRe: Entity data model with Master-detail scenario Pin
Dave Kreskowiak3-Feb-10 6:13
mveDave Kreskowiak3-Feb-10 6:13 
AnswerRe: Entity data model with Master-detail scenario Pin
Not Active3-Feb-10 4:28
mentorNot Active3-Feb-10 4:28 
GeneralRe: Entity data model with Master-detail scenario Pin
Ravi Mori3-Feb-10 6:25
Ravi Mori3-Feb-10 6:25 
QuestionGenerate popup desktop application Pin
RA|-|UL PATEL3-Feb-10 2:34
RA|-|UL PATEL3-Feb-10 2:34 
AnswerRe: Generate popup desktop application Pin
Not Active3-Feb-10 2:56
mentorNot Active3-Feb-10 2:56 
AnswerRe: Generate popup desktop application Pin
Luc Pattyn3-Feb-10 3:00
sitebuilderLuc Pattyn3-Feb-10 3:00 
GeneralRe: Generate popup desktop application Pin
Pete O'Hanlon3-Feb-10 3:55
mvePete O'Hanlon3-Feb-10 3:55 

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.