Couple of questions regarding events (am using Delphi).
My server has quite a few event sinks. I’ve got an issue where one of them is throwing an access violation on the client when the event is received.
Specifically, it’s occuring in uROEventReceiver.pas, in TROEventReceiver.Execute, on the line:
aTarget.GetInterface(IInterface, l_intf);
I’ve clearly done something wrong here as my other sinks work fine but I can’t for the life of me figure out what. Any ideas what could cause this error?
Secondly, the single TROEventReceiver component in my client app has a ServiceName property. What should this be set to as I have a lot of services in my server, most of which generate events via their own sinks?
I’d added the new EID_ to the first parameter of RegisterEventHandlers but neglected to add a form reference to the second parameter so the event was registered but going nowhere.
Still curious about the ServiceName property though.
since GetEventsData is a method of TRORemoteDataModule you have to specify ServiceName otherwise Remoting SDK can’t create service instance and call this method.