ScanAPI is hanging on the MC1000, time sensitive API?

Posted on 2008-11-13
Last Modified: 2012-05-05
I'm trying to wrap up a simple little barcode application for a Symbol MC1000 scanner.  I thought I had it working, but I've lost the magic in the cleanup sequence where I'm basically hanging the driver.  If I step very slowly through the code, all is fine.  Running at full speed, the application hangs in the SCAN_Disable call.


      dwResult = SCAN_Flush(hScanner);
      dwResult = SCAN_Disable(hScanner);    <---- hangs here, no return.

Part 1 of the question is, does anyone have any knowledge and experience with this API regarding any timing race conditions?  For example, I would expect the device to be ready to _Disable if the flush completes.

Part 2 of the question: the scanning application itself can make use of a messages, events or a simple read/timeout approach.  I elected to use the SCAN_ReadLabelWait approach where I look for a read and if I timeout I just read again.  However, the code samples I have seen in the API make use of the event driven architecture.  Any recommendations as to the more robust solution?  

Question by:charles_gilley
    1 Comment

    Accepted Solution

    To close this out, I appear to have a slightly braindead scanner unit.  Customer reports no problems on his device.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    With the proliferation of Android devices on the market today, it was inevitable that malicious types would want to start exploiting the openness of the platform. Luckily however, there are a few options when it comes to mobile security. Starting …
    If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now