|Subject:||HL7 component (Indy 9.0.14)|
|Posted by:||Dennis Jones (email@example.com)|
|Date:||Fri, 15 Apr 2005|
I just discovered the existence of the TIdHL7 component today (which made me
happy), and after a bit of searching, found some demo code posted by Grahame
Grieve that demonstrates a basic usage of the TIdHL7 component.
Unfortunately, I am having a problem with the demo program, and since the
documentation for TIdHL7 is practically zero, I don't have the slightest
idea where to begin to try to solve the problem.
The posted demo code was incomplete, so I had to make a few assumptions and
play a little bit of "fill in the blanks," but once I got past that, the
program appeared to run okay. I am able to put HL7 message data into the
memo controls and the program appears to send and receive the data okay.
The trouble occurs when I attempt to shutdown the server -- it times out
with the "Terminate Thread Timeout" error and the program hangs. [In
addition, thutting down the client also seems to have problems of its own,
though I haven't really been able to quantify the problem yet.]
The "terminate thread timeout" error is discussed at some length in various
newsgroups, but I have been unable to identify a general solution. There
are suggestions that threads are still running that are preventing the
shutdown from completing, but if that is the case, then the problem threads
are in Indy, as the demo program itself creates no threads of its own.
Grahame Grieve doesn't seem to have made an appearance on these newsgroups
since about the time he posted that code, so I don't expect him to respond,
but maybe someone else here has used the HL7 component successfully, and
knows what is causing this problem? I would really like to be able to use
this component, for it would save me a significant amount of work!
I am using Indy 9.0.14 with BCB6. I can post the demo code (it's fairly
short) or put it in an attachment newsgroup (such as
borland.public.attachments) if that would be helpful to anyone.
Thanks in advance,