 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Leif Holmgren Guest
|
Posted: Wed Jan 11, 2006 9:36 pm Post subject: Re: Delay or suspend Application waiting for thread to compl |
|
|
Paul E. Schoen wrote:
| Quote: | I am writing an application (and also a DLL) which uses a serial port with
specialized hardware. I need to try each of the available COM ports, open
it, send one or more control characters,
|
Not that it's any help with your problem but I hope that this is a scan
that the user has to initiate manually and that you provide a proper
warning before startint the scan. Other attached things may not like
what they receive.
I have had equipment lock up so bad I had to take it apart and remove
the internal battery just because a idiotic software for something
different scanned the serial ports each time it was started. This was
| Quote: | 10 years ago so I don't remember what it was but that software went
out the window as soon as I realized what had happened.. |
/Leif
|
|
| Back to top |
|
 |
Paul E. Schoen Guest
|
Posted: Thu Jan 12, 2006 2:57 am Post subject: Re: Delay or suspend Application waiting for thread to compl |
|
|
I appreciate the suggestion, and I think I will add a warning when this is
about to occur. Normally, the software will attempt to open a COM port that
has been predetermined in a setup file. It sends a single Ctrl-T which will
initiate a reply of a specific sequence of 240 characters. If it does not
find the proper information in the buffer after a timeout of about 500 mSec,
it closes the port. If it is searching, it will try all available ports.
Otherwise, it will enter a Demo mode. You may download the software (updated
often) and more information on my website www.Ortmaster.com. I would
appreciate suggestions and comments from Delphi professionals. This will be
used on a rather specialized piece of hardware, and I would not expect much
else to be connected to serial ports, but it is an important consideration.
Now that I have figured out a way to implement the Delay(mSec) function I
will also write a DelayMsg(mSec) function, and possibly offer it to the
Delphi community on Torry's pages or elsewhere (after more testing and
discussion). I wish I had such a function when I was starting this project.
Thanks.
Paul
"Leif Holmgren" <nobody (AT) nowhere (DOT) com> wrote
| Quote: | Paul E. Schoen wrote:
I am writing an application (and also a DLL) which uses a serial port
with
specialized hardware. I need to try each of the available COM ports,
open
it, send one or more control characters,
Not that it's any help with your problem but I hope that this is a scan
that the user has to initiate manually and that you provide a proper
warning before startint the scan. Other attached things may not like
what they receive.
I have had equipment lock up so bad I had to take it apart and remove
the internal battery just because a idiotic software for something
different scanned the serial ports each time it was started. This was
10 years ago so I don't remember what it was but that software went
out the window as soon as I realized what had happened..
/Leif
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|