473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Receive events from other project

Hi!
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....
Jan 3 '06 #1
3 1709
My guess would be because each app runs in its own process and cannot share
memory. Therefore when you bind the handler in one app, it is not seen by
the other app because each app has its own copy of the variable.

I doubt this is possible with simple event handling. You may need to use
something like remoting to communicate between the apps.
"Alejandro" <@> wrote in message
news:ua*************@TK2MSFTNGP14.phx.gbl...
Hi!
I have 3 projects. One is class library type, which has an static class
that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never
receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....

Jan 3 '06 #2
<"Alejandro" <@>> wrote:
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?


Not without using remoting. You need to understand that static members
are still scoped to the AppDomain, and when you run two processes,
you'll get (at least) two AppDomains.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 3 '06 #3
Hi, Alejandro,

Did you find a way to do this? I have a similar problem. I wonder how to use
..net remoting to do it.

Thanks

Dave

"Alejandro" wrote:
Hi!
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....

Jan 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marc ENGEL | last post by:
Hi all, I coded a python COM object that runs in a pythonw local server as a STA. This object creates and advises a VC++ COM object to receive its event. Those events are sent by worker...
12
by: Sven Groot | last post by:
I have a Windows Service application that acts as if it's an SMTP server. Outlook connects to this service, which is always running on the localhost. This works fine most of the time. However,...
11
by: dave | last post by:
I have been using vb.net /asp.net for 2 years. I am slowing switching over to c# and have 2 questions. 1.) Within vb.net I can go into asp.net project properties and I can enter the imports...
2
by: glenn | last post by:
I have a very serious problem with my forms and components that I was wondering if there was a way to turn off. The problem is as follows: 1) create a form and place 50 components on the form...
9
by: esafran | last post by:
Hi, I've have encountered a very strange behaviour under C#. My application is registering for: Microsoft.Win32.SystemEvents.DisplaySettingsChanged &...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
0
by: Peter | last post by:
I have a VB6 program which can receive Keydown events on an ActiveX control. The ActiveX control can't fire keydown events so I put a picturebox below the ActiveX control. I write codes in...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
5
by: raylopez99 | last post by:
I understand delegates (static and non-static) and I agree they are very useful, and that the "Forms" used in the Windows .NET API could not work without them. That said, I'm curious as to how...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.