Internal Error Retrieving Device Control Block
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up MSComm Serial Error 8021 “Internal error retrieving device control block for the port” up vote 0 down vote favorite Occasionally we get this error when communicating between my motion control software and a plasma cutting torch. What the serial link is being used for is a one time setup of cutting information before the cutting begins. I am using VB6 and MSComm for this. I know the port itself has lunched because after it occurs other serial comm software (diagnostics, etc) can't access the port either. I would like to understand what MSCOmm is doing when it received this error so I can find a better hardware solution. vb6 serial-port share|improve this question edited Oct 10 '12 at 19:55 dsolimano 6,11832746 asked Feb 19 '10 at 20:47 RS Conley 6,5811232 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted Try using a different OCX www.comm32.com has a control that mimics mscomm but has many improvements share|improve this answer answered Feb 25 '10 at 19:21 Ian 361 add a comment| up vote 1 down vote Mscomm32.ocx is still fully supported by Microsoft. You could ask their support people to help. If you have an MSDN subscription, you may be entitled to free support incidents. Apologies if you'd already thought of that, I hope someone else can give you a direct solution. share|improve this answer answered Feb 20 '10 at 12:06 MarkJ 24.9k34878 add a comment| up vote 1 down vote I've got the same problem and that is why entered into this forum. After going deeper into the problem of communication getting lost, found the intermitence belongs to my USB-RS232 converter module. Mainly because it is working controling external hardware it gets exposed to electrical noise causing a disruption to the USB-RS232 module. It gets resolved by unplugging it and putting it back, or by turning off the whole system. Make sure your software issue is not a hardare pr
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. Results 1 to 2 of 2 Thread: Runtime error 8021? Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-29-2008,01:06 PM #1 stargategfx View Profile View Forum Posts Senior Member Join Date Jan 2004 Location MGM Television, Vancouver British Columbia Posts 101 Runtime error 8021? Just ruined a nice piece of teak with my Shopbot Alpha. Even worse http://stackoverflow.com/questions/2299429/mscomm-serial-error-8021-internal-error-retrieving-device-control-block-for-the was the fact that it was for my own boat! Getting runtime error 8021 "Internal error retrieving device control block for the port" I'm running Windows XP, Shopbot 3 v3.5.7 to a spindle equipped 60 x 120 Alpha via a powered USB hub. The system has been pretty stable for a couple of years but has been acting up lately. Anybody experienced this error? Here's my boat blog in case anybody is interested www.catalinathirty.com http://www.talkshopbot.com/forum/showthread.php?2780-Runtime-error-8021 Reply With Quote 04-29-2008,01:45 PM #2 beacon14 View Profile View Forum Posts Visit Homepage Senior Member Join Date Oct 2000 Location Atlanta GA Posts 1,496 If a formerly stable system is starting to act up, and you have not changed anything recently, the first thing I'd suspect is the computer. I had similar problems a few years ago, turned out the computer's memory card was defective and was starting to fail. Reply With Quote Quick Navigation Archives2008 Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums General Test Area About this Forum Virtual Show and Tell Folder 2016 Folder 2015 Folder 2014 Folder 2013 Folder 2012 Folder 2011 Project Ideas ShopBotter Message Boards ShopBotter Message Board Camp ShopBots/User Groups/Training Classes Looking for ShopBot owner For Sale/Wanted - ShopBot-related items only Product/Supplier List and Requests ShopBotter Blogs and Websites Applications and Techniques Cabinetry and eCabinet/ShopBot Link Sign Making Designing and Creating the sbp cutting file Autodesk Fusion 360 Techniques for Cutting, Drilling, Machining ShopBot in Schools ShopBot Businesses Developers ShopBot Specific ShopBot Desktop ShopBot Buddy Indexer ShopBot Accessories PRS Assembly Assembly & Maintenance Variations & Modifications of ShopBots Troubleshooting « Previous Thread | Next Thread » Posting Permissions You may not post new threads You may not post replies You may not post attachments You may
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help https://www.experts-exchange.com/questions/21404755/Run-Time-Error-'8021'-with-MSComm.html Receive Real-Time Help Create a Freelance Project Hire for a Full http://www.auelectronics.com/forum/index.php?topic=766.0 Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Run-Time Error '8021' with MSComm Want to Advertise Here? Solved Run-Time Error '8021' internal error with MSComm Posted on 2005-04-27 Visual Basic Classic 1 Verified Solution 8 Comments 4,641 Views Last Modified: 2013-12-25 Hi all, I currently am using two MSComm object to read from two serial ports. One is connected to a barcode reader and the other to a weigh scale. After running for some time i recieve an internal error retrieving Run-Time Error '8021' Internal error retrieving device control block for the port. I am not sure why i am getting it and can't seem to find any way to solve the problem. Has anyone run into this problem before? I will be happy to post sections of the source code if necessary. Thanks Much. 0 Question by:jbutterfieldAtDiamond Facebook Twitter LinkedIn Google LVL 10 Best Solution byedwardiii Found some info here (http://www.tech-archive.net/Archive/VB/microsoft.public.vb.winapi.networks/2004-08/0035.html) that seems to indicate the problem you're having may be a result of the client PCs Go to Solution 7 Comments LVL 10 Overall: Level 10 Visual Basic Classic 9 Message Expert Comment by:edwardiii2005-04-27 Hi, jbutterfieldAtDiamond. Hopefully an Expert with experience will post a better answer, but possibly the direction at this URL is the way to go: http://www.mp3car.com/vbulletin/showpost.php?p=138304&postcount=82 E.g. set up an error trap to reset the comm port to your devices? 0 Message Author Comment by:jbutterfieldAtDiamond2005-04-27 Hi Edwardiii, Thanks for the idea but this really isn'
Home Help Search Login Register Chat Reputation Add to Reputation: What do you think of this post? I agree I disagree Comment: Au Group Electronics Forum>Software / Computer / Network>Visual C++ /CLI programming. (Moderators: F. N., Nicen, Mikeduan, Future)>Topic: VC6 and MSComm: Pages: [1] Go Down « previous next » Print Author Topic: VC6 and MSComm: (Read 406 times) 0 Members and 1 Guest are viewing this topic. Administrator Administrator Hero Member Reputation Power: 40 Offline Location: Canada Posts: 3198 Activity 0% VC6 and MSComm: « on: April 08, 2016, 09:01:37 AM » VC6, MSComm Control: The MSComm control provides serial communications for your application by allowing the transmission and reception of data through a serial port.QuoteThe MSComm control provides the following two ways for handling communications:1.Event-driven communications is a very powerful method for handling serial port interactions. In many situations you want to be notified the moment an event takes place, such as when a character arrives or a change occurs in the Carrier Detect (CD) or Request To Send (RTS) lines. In such cases, use the MSComm control's OnComm event to trap and handle these communications events. The OnComm event also detects and handles communications errors. For a list of all possible events and communications errors, see the CommEvent property. 2.You can also poll for events and errors by checking the value of the CommEvent property after each critical function of your program. This may be preferable if your application is small and self-contained. For example, if you are writing a simple phone dialer, it may not make sense to generate an event after receiving every character, because the only characters you plan to receive are the OK response from the modem.Each MSComm control you use corresponds to one serial port. If you need to access more than one serial port in your application, you must use more than one MSComm control. The port address and interrupt address can be changed from the Windows Control Panel.Although the MSComm control has many important properties, there are a few that you should be familiar with first.QuoteVisual Studio 6.0, MSComm ControlPropertiesDescriptionCommPortSets and returns the communications port number.SettingsSets and returns the baud rate, parity, data bits, and stop bits as a string.Port