RE: Remotely invoked delegates - security exception:
- From: Luiz Ragazzi <LuizRagazzi@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 9 Aug 2005 12:30:03 -0700
Hi there
Could you help me...
I am having a problem when I try to raise an evend using Remoting
On my class MarshalByRefObject...I created:
public delegate void PriceHandler(object sender, PriceEventArgs e);
public event PriceHandler PriceEvent;
My Remote Method from this class you can see below:
void SetPrice(string Price)
{
PriceEventArgs myPrice = new PriceEventArgs(Price);
PriceEvent(this,myPrice);
}
the class PriceEventArgs has a property Price where:
on the CLIENT windows forms the event is definied to update a label
from the property's value.
But, when I call the remote client, I can't raise the event, I got the
following Message:
"Object reference not set to an instance of an object."
Whats is wrong with my Event, this happens when the remote method call the
event.
If its not clear, please ask me.
appreciate any help.
Regards
.
- Prev by Date: Calling events on the server
- Next by Date: Re: Remoting and COM+
- Previous by thread: Calling events on the server
- Next by thread: Central Remoting Service
- Index(es):
Loading