Error Reading Comm Device
Contents |
(Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeLibraryWikiLearnGalleryDownloadsSupportForumsBlogs Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by:
Error Reading Comm Device 8020
Run-time error 8020 - Error reading comm device with VB6 mscomm error reading comm device app isolated to Win 10 Windows 10 IT Pro > Windows 10 Application Compatibility Question 1
Error Reading Comm Device Visual Basic
Sign in to vote We are experiencing "Run-time error '8020': Error reading comm device" using a PIC18F14K50 USB Module to a VB6 application isolated to error reading comm device windows 7 Win 10 OS (Home tested not Professional) and not networked. Driver versions 5.1.2600.2 and 5.1.26009 work with above USB module and VB6 application on Win XP, 7 and 8.1, but again not on Win 10. The Microchip PIC USB module using these drivers on Win 10 "does" work with non-VB6 applications. Note, error 8020 visual basic above VB6 application works on Win 10 PC with Keyspan USB module and its driver. This run-time error has occurred onevery PC tested thus far, potentially in the dozens, hence the isolated Win 10 bug claim. This issue is critical to our business as our clients aren't able to use our product on Win 10 forcing us to purchase and install older Windows for compatibility. Edited by Davidux Saturday, October 03, 2015 12:41 AM Saturday, October 03, 2015 12:37 AM Reply | Quote All replies 0 Sign in to vote You might try this... found at http://windowssecrets.com/forums/showthread.php/121174-MScomm-Control-6-0 - Start Regedit. - Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{648A5600-2C6E-101B-82B6-000000000014} - Change the value of Compatibility Flags from 0x0400 to 0. Saturday, October 03, 2015 3:04 AM Reply | Quote 0 Sign in to vote Thanks graye, but this didn't work or did I edit it incorrectly (see below?) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\A
Forum Visual Basic Programming Visual Basic 6.0 Programming Run-time error '8020' Error reading comm device If this is your first visit, be sure
Runtime Error 8020 Error Reading Comm Device Windows 7
to check out the FAQ by clicking the link above. You may run time error 8020 error reading comm device have to register or Login before you can post: click the register link above to proceed. To start viewing
Runtime Error 8020 Prolific
messages, select the forum that you want to visit from the selection below. Results 1 to 15 of 15 Thread: Run-time error '8020' Error reading comm device Tweet Thread Tools Show https://social.technet.microsoft.com/Forums/en-US/b7baf27d-c376-4c58-b751-48efb5a9eb9c/runtime-error-8020-error-reading-comm-device-with-vb6-app-isolated-to-win-10?forum=win10itproapps Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode October 17th, 2005,01:48 AM #1 tpadhu View Profile View Forum Posts Member Join Date Oct 2005 Posts 113 Run-time error '8020' Error reading comm device hi, how to solve Run-time error '8020' - (Error reading comm device ) any ideas? thanks October 17th, http://forums.codeguru.com/showthread.php?361220-Run-time-error-8020-Error-reading-comm-device 2005,03:35 AM #2 Bill Crawley View Profile View Forum Posts Visit Homepage Senior Member Join Date Aug 2000 Location Essex, Uk Posts 1,214 Re: Run-time error '8020' Error reading comm device Please show how you have declared the connection and how you are attempting to open the port Also check this out http://support.microsoft.com/default...b;en-us;318784 If you find my answers helpful, dont forget to rate me October 17th, 2005,04:30 AM #3 tpadhu View Profile View Forum Posts Member Join Date Oct 2005 Posts 113 Re: Run-time error '8020' Error reading comm device hi, This is my port setting procedure. Is anything wrong? Some times i'm getting " Set comm state failure error" too. Private Sub Form_Load() With MSComm1 .CommPort = 1 .RThreshold = 1 .Settings = "38400,n,8,1" .InputLen = 0 .SThreshold = 1 .InBufferCount = 0 .OutBufferCount = 0 .PortOpen = True End If MSComm1.Output = Chr(65) + Chr(80) + Chr(48) + Chr(13) End With Waiting for ur suggestions. Thank you. October 17th, 2005,04:53 AM #4 Bill Crawley View Profile View Forum Posts Visit Homepage Senior Member Join Date Aug 2000 Location Essex, Uk Posts 1,214 Re: Run-t
2015 Messages: 3 Likes Received: 0 Hi I have some old programs, developed in VB6 that use the serial port with mscomm32.ocx This programs works fine on windows XP, 7, 8, 8.1 After windows 10 installation this happens: - Program start normally - When i click a button, the http://www.windows10forums.com/threads/mscomm32-ocx-run-time-error.2474/ program do this steps: open the serial port (no errors) try to read a serial character (no errors) send a serial character (no errors) try to read an answered serial character and receive the error: "run time error 8020" "Error reading comm device" - I have RE-registered mscomctl.ocx and mscomm32.ocx -> nothing change - I have RE-installed usb/serial driver -> nothing change The device work fine using a standard communication utility like "putty". Any suggestion? thanks Last edited by a moderator: Aug 17, 2015 papergion, Aug 17, error reading 2015 #1 Advertisements joanjoan Joined: Sep 14, 2015 Messages: 1 Likes Received: 0 Hi I have the same problem with old VB6 programs. Have you found a solution?. Thanks joanjoan, Sep 14, 2015 #2 Advertisements papergion Joined: Aug 17, 2015 Messages: 3 Likes Received: 0 Still no solution found... papergion, Oct 6, 2015 #3 Timothy Regan Joined: Oct 6, 2015 Messages: 2 Likes Received: 0 I can reproduce the same problem with the Polou USB Micro Controllers, Open works, Write works but Read fails (8020 error reading comm ); No problems with the exact same code on Win 7 & Win 8; only win 10. Timothy Regan, Oct 6, 2015 #4 sedatkarakoyuncu Joined: May 12, 2016 Messages: 1 Likes Received: 0 Sometimes the easiest answer is the solution. Let me tell at the begining that, I've solved the problem. That is the story: I have tried lots of things, but when I was talking to a friend about my problem (who knows nothing on computing and VB6), he told me "I used to use a BIOS setting in older PCs, not to halt on any error such as no diskette driver, no keyboard, don't you have a command like that. OK there is an error but don't care about it, don't warn me about it, don't stop even if there are errors". Yes, what he was talking about is the easy, old, sweety "On Error Resume Next" statement!!! I hvae used it and my programs started to communicate via MSCOMM32 as they used to. You should better use "On Error Goto" and "Err.Number" to trap other errors instead of this 8020 error. May be there is a real error, may be the USB to RS232 cable disconnected etc. And second warning, sometimes On Error Resume Next inludes the subroutines, sometimes it takes a lot of time to understand what is going on (and what is not going on) in your code when you use On Error Resume Next. So, copy your communicating lines to a sub, put an On Error Resume Next at the begining of this s