Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net 3 Pin
Paul Conrad12-Jul-07 17:17
professionalPaul Conrad12-Jul-07 17:17 
GeneralRe: .Net 3 Pin
martin_hughes12-Jul-07 12:21
martin_hughes12-Jul-07 12:21 
GeneralRe: .Net 3 Pin
leckey12-Jul-07 17:00
leckey12-Jul-07 17:00 
GeneralRe: .Net 3 Pin
Paul Conrad12-Jul-07 17:34
professionalPaul Conrad12-Jul-07 17:34 
Questionadd error handling page to project Pin
daku112-Jul-07 8:01
daku112-Jul-07 8:01 
AnswerRe: add error handling page to project Pin
Dave Sexton12-Jul-07 11:01
Dave Sexton12-Jul-07 11:01 
QuestionIllegal Cross thread Error Pin
ramdil12-Jul-07 7:37
ramdil12-Jul-07 7:37 
AnswerRe: Illegal Cross thread Error Pin
Luc Pattyn12-Jul-07 8:06
sitebuilderLuc Pattyn12-Jul-07 8:06 
Hi,

the cross-thread problem is inherent in how controls work; they are not thread-
safe, so the right approach is for each control to have only one thread ever
working on it, normally that's the main thread aka GUI thread.

there was no checking before .NET 2.0 and an app would work, partially work,
suddenly hang, whatever if you did it wrong.

.NET 2.0 checks and throws InvalidOperationException (as you know), unless
you set CheckForIllegalCrossThreadCalls false, in which case you return to
the pre 2.0 situation. I cant recommend that.

The normal solution is similar to what you have, with one difference:
the delegate and the else part of the if normally call the same method.
In your code it is DisplayMessage and ReceiveMessage !?

BTW: I am not sure what "this" is refering to in your web service, does
it has controls while not having a GUI ??

Smile | :)


GeneralRe: Illegal Cross thread Error Pin
ramdil12-Jul-07 8:16
ramdil12-Jul-07 8:16 
GeneralRe: Illegal Cross thread Error Pin
martin_hughes12-Jul-07 8:24
martin_hughes12-Jul-07 8:24 
GeneralRe: Illegal Cross thread Error Pin
ramdil12-Jul-07 8:26
ramdil12-Jul-07 8:26 
GeneralRe: Illegal Cross thread Error Pin
Luc Pattyn12-Jul-07 8:37
sitebuilderLuc Pattyn12-Jul-07 8:37 
GeneralRe: Illegal Cross thread Error Pin
ramdil12-Jul-07 22:38
ramdil12-Jul-07 22:38 
QuestionEmbedding a second icon into an exe file... Pin
Shy Agam12-Jul-07 7:13
Shy Agam12-Jul-07 7:13 
AnswerRe: Embedding a second icon into an exe file... Pin
Ed.Poore12-Jul-07 9:27
Ed.Poore12-Jul-07 9:27 
GeneralRe: Embedding a second icon into an exe file... Pin
Shy Agam12-Jul-07 12:27
Shy Agam12-Jul-07 12:27 
GeneralRe: Embedding a second icon into an exe file... Pin
Ed.Poore12-Jul-07 12:54
Ed.Poore12-Jul-07 12:54 
GeneralRe: Embedding a second icon into an exe file... Pin
Shy Agam12-Jul-07 13:11
Shy Agam12-Jul-07 13:11 
GeneralRe: Embedding a second icon into an exe file... Pin
Ed.Poore12-Jul-07 13:45
Ed.Poore12-Jul-07 13:45 
GeneralRe: Embedding a second icon into an exe file... Pin
Shy Agam12-Jul-07 14:00
Shy Agam12-Jul-07 14:00 
GeneralRe: Embedding a second icon into an exe file... Pin
Ed.Poore12-Jul-07 14:40
Ed.Poore12-Jul-07 14:40 
Questionhow to make snooker/pool/billiard in C#??? Pin
chumairr12-Jul-07 6:32
chumairr12-Jul-07 6:32 
AnswerRe: how to make snooker/pool/billiard in C#??? Pin
Christian Graus12-Jul-07 6:39
protectorChristian Graus12-Jul-07 6:39 
GeneralRe: how to make snooker/pool/billiard in C#??? Pin
Paul Conrad12-Jul-07 6:52
professionalPaul Conrad12-Jul-07 6:52 
GeneralRe: how to make snooker/pool/billiard in C#??? Pin
Christian Graus12-Jul-07 6:58
protectorChristian Graus12-Jul-07 6:58 

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.