MSComm.VBX hangs computer? (Visual Basic 3.0, 4.0) 
Author Message
 MSComm.VBX hangs computer? (Visual Basic 3.0, 4.0)

Quote:

> Hello, all,

>   I'm writing an app to gather data from a serial port, and I'm having
> significant problems with the Communication control in Visual Basic.
> Two separate problems are hitting me:

> 1) If the sending unit is sending when I first use the PortOpen command,
> the computer hangs (hard reboot necessary).

> 2) If I run the program successfully and then exit it, and then run it
> again, the computer hangs (again, hard reboot necessary).

>   I'm wondering if any VB gurus out there have any words of wisdom on
> this topic. I figure the second problem is caused by not resetting the
> port to its original configuration, and yet I haven't seen anything but
> a "Comm1.PortOpen = False" to close a serial port in any samples. Also,
> Microsoft literature doesn't make note of any problems.

>   As for the first problem, I'm guessing I have to somehow clear the
> port of all previous data before I open it. Again, I have no idea how.

>   For reference, I'm running a Pentium 60 with Windows 3.1 and 2 com
> ports, only one of which is in use at any time. I tried switching in
> between them, but the problems remained. If anyone has any idea how to
> fix this, I would be very appreciative if you could send me some email

> Thanks in advance,
> Mike Cating

You may get a better response in one of these groups :-

comp.lang.basic.visual.announce
comp.lang.basic.visual.database
comp.lang.basic.visual.misc
comp.lang.basic.visual.3rdparty

Crossposted to comp.lang.basic.visual.misc, follow-up to same.
Cheers,
--
Douggie



Wed, 11 Nov 1998 03:00:00 GMT  
 MSComm.VBX hangs computer? (Visual Basic 3.0, 4.0)

Quote:
> >   For reference, I'm running a Pentium 60 with Windows 3.1 and 2 com
> > ports, only one of which is in use at any time. I tried switching in
> > between them, but the problems remained. If anyone has any idea how to
> > fix this, I would be very appreciative if you could send me some email


About two years ago, I had a similar problem with a communications program. It turned out to
be the chip set on the motherboard of 60 Mhz Pentiums that serves the serial ports. The hang
occured on P5-60's and P5-66's, but we only had two types of P5-60's around- Gateway and Dell.
[They had identical motherboards]

After months messing around updating bioses and installing tsr patches, we ended up swapping
the motherboards to a P5-90 and the problem went away.

Interestingly, the problem only occurred from w/in Windows and not DOS.

Good luck,



Sun, 15 Nov 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MSComm hangs computer? (VB 3.0, 4.0)

2. MSComm hangs computer? (VB 3.0, 4.0)

3. Visual Basic 3.0 vs Visual Basic 4.0

4. Visual Basic 4.0 and Visual FoxPro 3.0 databases

5. msole.vbx for visual basic 3.0

6. Need to find VBX's for Visual BASIC 3.0

7. Visual Basic 4.0 16bit, Jet 2.5/3.0/3.5, MS-Access 7.0

8. win98 patch needed for visual basic 3.0 and 4.0

9. Visual Basic 4.0 and Crystal 3.0 Distribution Problem

 

 
Powered by phpBB® Forum Software