BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Delay or suspend Application waiting for thread to compl

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Leif Holmgren
Guest





PostPosted: Wed Jan 11, 2006 9:36 pm    Post subject: Re: Delay or suspend Application waiting for thread to compl Reply with quote



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





PostPosted: Thu Jan 12, 2006 2:57 am    Post subject: Re: Delay or suspend Application waiting for thread to compl Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.