Events question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm developing an class library. One of the classes raises some events.
I'm testing this library by developing a test application. When I run two
instances of this test application on the same machine,
only the first application is handling the
events raised by my class library. It seems that the other clients on the
same machine are not handling the events.

What could be the problem and How can we solve this problem.

Kindly let me know,

Cheers,

Naveen.
 
Naveen Mukkelli said:
I'm developing an class library. One of the classes raises some events.
I'm testing this library by developing a test application. When I run two
instances of this test application on the same machine,
only the first application is handling the
events raised by my class library. It seems that the other clients on the
same machine are not handling the events.

What could be the problem and How can we solve this problem.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

Note that if you've got two different processes and aren't doing
anything particular to make the events system-wide, they'll only be
handled by the process that raised them.
 
Back
Top