Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

processor hogging

Status
Not open for further replies.

marct

Programmer
Apr 6, 1999
32
US
Hi,<br>
<br>
I am having a problem with the MSComm control hogging processor time. I have an app that automatically pages people based on certain conditions, and I use MSComm to connect to the modem and perform the paging. Problem is, when it is waiting for a response after sending various strings to the modem, I can't use other programs because the MSComm seems to be demanding the processor's attention. I am using a do..until loop looking for certain strings from the MSComm's Input property, but I have included DoEvents in the loop so as not to disable other programs while the loop is running. I thought that DoEvents would take care of the problem that I am having, but apparently I am wrong here.<br>
<br>
Am I missing something here? Is there some way in VB to set the priority level of a program (as far as the processor is concerned)? Any help here would be greatly appreciated.<br>
<br>
Thanks in advance,<br>
<br>
-Marc
 
Marc,<br>
<br>
Sorry for the lack of response but I delayed answering your post in the hope that someone would be able to say something vaguely useful.<br>
<br>
So - Have you done the obvious things?<br>
<br>
Are you running the latest version of the mscomm control?<br>
<br>
Do you have the latest service pack for your version of VB?<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top