Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with Visual Studio .NET Pin
johnstacey4-Mar-04 11:36
johnstacey4-Mar-04 11:36 
GeneralRe: Problem with Visual Studio .NET Pin
pacelvi5-Mar-04 13:02
pacelvi5-Mar-04 13:02 
GeneralLogin Form using C#(Winforms) Pin
umairpasha3-Mar-04 10:32
umairpasha3-Mar-04 10:32 
GeneralRe: Login Form using C#(Winforms) Pin
joan_fl3-Mar-04 10:47
joan_fl3-Mar-04 10:47 
GeneralUse remoting to invoke a remote method Pin
Judah Gabriel Himango3-Mar-04 9:27
sponsorJudah Gabriel Himango3-Mar-04 9:27 
GeneralRe: Use remoting to invoke a remote method Pin
LongRange.Shooter3-Mar-04 10:26
LongRange.Shooter3-Mar-04 10:26 
GeneralRe: Use remoting to invoke a remote method Pin
Judah Gabriel Himango3-Mar-04 12:49
sponsorJudah Gabriel Himango3-Mar-04 12:49 
GeneralRe: Use remoting to invoke a remote method Pin
Tom Larsen3-Mar-04 11:05
Tom Larsen3-Mar-04 11:05 
Doing Deligates across application domains is difficult. Doing Deligates across Remoted app domains is nearly impossible.

Consider the basic network setup: a firewall on your end (if you don't have a firewall, why not?!) and a firewall on the Server end. Your machine passes through your firewall and hits the Server firewall on port 80 (using Http for an easy example, but it is a problem on any port) and forwards the traffic to the real machine "Server". The Client signs up for an event on the server through an exposed deligate/event. The event happens but how does the Server cross the firewall on your end to contact your machine? Sure you can forward ports but that only works for you machine. If you have many machines behind your firewall all trying to access the Server all wanting to use the deligate, then you are sunk because the Server has no idea how to initiate a connection to your machine.

If you are on an open network (say an intranet) and all computers are peer-to-peer you might have a chance. You have to shift your strategy from a client-to-server to a double client-to-server. Your client contacts the server. The server in turn becomes a "client" broadcasting the event to your client's "server".

I personally would avoid using deligates/events across remoted application domains. It generates overhead an complicates transations (what happens if your client crashes but the server fires an event?). I would try to isolate all deligates/events on one side or the other of the remoted application domains. The key here is to make a design that is clean. When your application straddles application domains you need to keep the application domains "clean" or you introduce instability in one side or the other.
GeneralLimiting window movement Pin
sixefftee3-Mar-04 9:16
sixefftee3-Mar-04 9:16 
GeneralRe: Limiting window movement Pin
John Fisher4-Mar-04 10:55
John Fisher4-Mar-04 10:55 
GeneralPOP3 email monitor in c# Pin
gcwala3-Mar-04 9:05
gcwala3-Mar-04 9:05 
GeneralRe: POP3 email monitor in c# Pin
Heath Stewart3-Mar-04 9:11
protectorHeath Stewart3-Mar-04 9:11 
QuestionHow to et a List of PCS in my network Pin
dlm66673-Mar-04 9:00
dlm66673-Mar-04 9:00 
AnswerRe: How to et a List of PCS in my network Pin
Heath Stewart3-Mar-04 9:09
protectorHeath Stewart3-Mar-04 9:09 
GeneralC# pretty printers Pin
joschmo803-Mar-04 7:55
joschmo803-Mar-04 7:55 
Questionhow to get the picture from webcam in C#? Pin
kendao3-Mar-04 7:15
kendao3-Mar-04 7:15 
AnswerRe: how to get the picture from webcam in C#? Pin
Mazdak3-Mar-04 7:33
Mazdak3-Mar-04 7:33 
AnswerRe: how to get the picture from webcam in C#? Pin
Heath Stewart3-Mar-04 9:01
protectorHeath Stewart3-Mar-04 9:01 
AnswerRe: how to get the picture from webcam in C#? Pin
joan_fl3-Mar-04 10:49
joan_fl3-Mar-04 10:49 
GeneralAdvise for debugging Pin
HAHAHA_NEXT3-Mar-04 6:12
HAHAHA_NEXT3-Mar-04 6:12 
GeneralRe: Advise for debugging Pin
Mazdak3-Mar-04 6:25
Mazdak3-Mar-04 6:25 
GeneralRe: Advise for debugging Pin
Heath Stewart3-Mar-04 6:32
protectorHeath Stewart3-Mar-04 6:32 
GeneralRe: Advise for debugging Pin
Mazdak3-Mar-04 6:37
Mazdak3-Mar-04 6:37 
GeneralRe: Advise for debugging Pin
HAHAHA_NEXT3-Mar-04 8:20
HAHAHA_NEXT3-Mar-04 8:20 
GeneralRe: Advise for debugging Pin
Tom Larsen3-Mar-04 11:19
Tom Larsen3-Mar-04 11:19 

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.