If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > URGENT MSComm ports conflict

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 03:34
Wolverchenus Wolverchenus is offline
Registered User
 
Join Date: Mar 2004
Posts: 34
URGENT MSComm ports conflict

I realize this is stricly not a database question but I know this forum has some aces in VB and I really need to have his problem fixed.

Ok, now bear with me, this is might be a tad complex.

I've got MDIChild forms that have a MSComm control.

I connect two devices to them that transmit a certain text every .5 second.

Whenever I try to run the program with two forms\port simultaniously they affect each other. As in stopping the flood of data. I think the problem might be because the MDIforms call for a procedure with the same name (which is MSComm_onComm event) it sounds plausable.

Can anyone help me with that?

Chen
Reply With Quote
  #2 (permalink)  
Old 06-09-04, 10:46
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
I don't think that MSComm is thread-safe. If that is the case, and you are getting lots of traffic on the serial port(s), then data loss is pretty likely.

There are commercial serial comm libraries that give you many more options.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On