[Openroad-users] IIW4GL_SENDUSEREVENT
Antill, Jim
jantill at revenue.ie
Tue Nov 14 20:36:24 EST 2006
Rich,
We're using events here (using C code) to communicate between multiple
OpenROAD applications. Haven't had any problems with events being dropped.
We're using OR4.0 on WinXP.
One problem we did have was ensuring that the sending application waited for
the receiving application to fully start before trying to send events to it.
In the end we solved this by getting the receiving app to write to a file
when it had finished setting itself up. The sending and receiving
applications are started at the same time. The sending application monitors
the file, looking for a message from the receiving app to say it's ready.
Only once this message has been detected does the sending app start to
attempt sending events to the receiver.
In order to make the event handling a little more robust we also use a
logfile. When the receiving app gets an event it writes a message to the
logfile saying that the event has been received (each event is given a unique
numerical ID so it can be identified). When the sender issues an event it
monitors this logfile to ensure that the event has been received OK. If,
after a predetermined period, no confirmation of the receipt of the event is
in the log the event can either be sent again or the error reported.
It's not particularly elegant but it's simple and works pretty well.
Hope that helps.
Regards,
Jim
-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com]On Behalf Of Richard M.
Wright
Sent: 13 November 2006 18:01
To: International OpenROAD Users
Subject: [Openroad-users] IIW4GL_SENDUSEREVENT
*************************************
This e-mail has been received by the Revenue Internet e-mail service.
*************************************
OR 4.1 / XP
Hi,
I am trying to communicate with a separate image using events.
I am using IIW4GL_SENDUSEREVENT (in 3GL) to handle messages between the
two. The first time I raise an event and use this method, the
communication is hit or miss.
I am sure that the receiver has registered correctly for the event.
I have set up a loop to continually raise the event until I receive a
successful return, this ranges from 1 (most of the time ) to many
thousand times
Once I have successfully raised an event (and it has been received) then
everything is fine for subsequent events.
Has anyone experienced something similar? And if so did you find a
better solution than a loop to retry?
Many Thanks
Rich Wright
************************************************************************
This Internet E-mail is intended solely for the person to whom it is
addressed. It may contain confidential or privileged information. If you have
received it in error please notify us immediately by telephone and destroy
the transmission. You must not copy, distribute or take any action in
reliance on it.
Aerosystems International Phone: +44 (0)1935 443000
Fax : +44 (0)1935 443111
Web : www.aeroint.com
************************************************************************
_______________________________________________
Openroad-users mailing list Openroad-users at peerlessit.com
To unsubscribe please click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
To subscribe please click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
************************
This message has been delivered to the Internet by the Revenue Internet e-mail service
*************************
More information about the Openroad-users
mailing list