To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic 6 and Earlier

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Jun 24th, 2009, 10:18 AM   #1
Ron22
Junior Member
 
Join Date: Mar 06
Posts: 17
Ron22 is an unknown quantity at this point (<10)
Error 8020

I have a program I wrote in VB 6 and it has been used on XP machines. Now someone is installing it on a Vista machine. We are using a TRENDNET TU-S9 USB - Serial adapter. I download the newest Vista/XP drivers. It show up as a Prolific USB - Serial adapter. This is the same USB - Serial adapter we have used on XP machines. I installed the same driver on my XP machine and it works fine.
So is it a Driver issue or a Vista Issue? From Microsoft http://support.microsoft.com/kb/318784
If it is a adapter issue anyone have one they use with Vista and MSComm
Ron22 is offline   Reply With Quote
Old Jun 24th, 2009, 11:18 AM   #2
JJJCR_FOX
Addicted Member
 
Join Date: Jan 09
Posts: 192
JJJCR_FOX is on a distinguished road (10+)
Re: Error 8020

so the program you write on vb6 doesn't work with vista or what?
__________________
The taller the bamboo grows the lower it bends...
JJJCR_FOX is offline   Reply With Quote
Old Jun 24th, 2009, 11:31 AM   #3
Ron22
Junior Member
 
Join Date: Mar 06
Posts: 17
Ron22 is an unknown quantity at this point (<10)
Re: Error 8020

The program runs fine until it trys to acess the Com port. Then it gives error 8020. This only happens in Vista 64 (so far) using the same USB to Serial adapter I used in the past and tested again with XP.
Ron22 is offline   Reply With Quote
Old Jun 24th, 2009, 02:59 PM   #4
jjsomer
Member
 
Join Date: Jan 06
Posts: 39
jjsomer is an unknown quantity at this point (<10)
Re: Error 8020

I would say start by checking the COM number assigned to your USB-RS232 device in the control panel. Verify that your application is indeed opening up the correct COM port.

If everything is as expected, I would open hyperterminal and verify you are receiving data from the USB-RS232 device when expected.

As a last resort, you can download portmon and "sniff" the RS232 line as well as see some other information...
PortMon
jjsomer is offline   Reply With Quote
Old Jun 24th, 2009, 03:24 PM   #5
Ron22
Junior Member
 
Join Date: Mar 06
Posts: 17
Ron22 is an unknown quantity at this point (<10)
Re: Error 8020

This is in vista
I know what port number is assigned to the USB to Serial adapter. I checked in control panel. (Com for for the test)
Everything see the comport it is just when I open it I get the problem.
Im not sure using another program would be any help other than telling me that the com port works that that program.
From http://support.microsoft.com/kb/318784
Quote:
When you use the Input method of the MSComm control with some serial ports, the MSComm.Input method may fail, and you may receive the comReadError error (error 8020).
and
Quote:
This problem is only known to occur with some third-party serial drivers. To correct the problem, contact the manufacturer of the serial driver to obtain an updated driver.
So unless the other program is using MSComm it most likely will work.

Again this only happens in Vista It has never happened in XP Pro or Home.
Ron22 is offline   Reply With Quote
Old Jun 24th, 2009, 05:36 PM   #6
westconn1
PowerPoster
 
Join Date: Dec 04
Posts: 11,790
westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)westconn1 is a splendid one to behold (700+)
Re: Error 8020

it may be as much a 64 bit problem, did you try with XP64?
__________________
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

come back and mark your original post as resolved if your problem is fixed
pete
westconn1 is offline   Reply With Quote
Old Jun 25th, 2009, 01:09 AM   #7
JJJCR_FOX
Addicted Member
 
Join Date: Jan 09
Posts: 192
JJJCR_FOX is on a distinguished road (10+)
Re: Error 8020

try to use this software to debug your issue...

USBlyzer - Professional Software USB Protocol Analyzer

or

http://www.aggsoft.com/serial-port-m...2-analyzer.htm
__________________
The taller the bamboo grows the lower it bends...
JJJCR_FOX is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic 6 and Earlier


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:58 AM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.