Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread EAbort from server procedures
Wed, Apr 11 2007 2:26 AMPermanent Link

Oliver Bock
As mentioned in an earlier post, I'm using DBISAM to provide
asynchronous event notification FROM the server TO the client.  I do
this with a server procedure call that's executed in an extra thread,
and which only returns when an event occurs.

My problem is that TDBISAMSession.CallRemoteProcedure raises an EAbort
exception if my server procedure doesn't return within 10 minutes.  How
can I stop or control this?  (Of course I can work around it by
returning every five minutes, but I'd prefer not to.)


  Oliver
Wed, Apr 11 2007 2:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Oliver,

<< My problem is that TDBISAMSession.CallRemoteProcedure raises an EAbort
exception if my server procedure doesn't return within 10 minutes.  How can
I stop or control this?  (Of course I can work around it by returning every
five minutes, but I'd prefer not to.) >>

Just make sure that you have an event handler defined for the
OnRemoteTimeout event, and just tell it to keep waiting by setting the
StayConnected parameter to True:

http://www.elevatesoft.com/dbisam4d7_tdbisamsession_onremotetimeout.htm

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Apr 11 2007 8:58 PMPermanent Link

Oliver Bock
That's just the trick.  Thanks.
Image