Application works on one handheld but not on the other!!!

Hello people,

this is my last shot so please help me out! I have two MC1000s handheld barcode scanners. My application works on the one but doesn't work on the other. It has something to do with SCAN_ENABLE error that doesn't appear when I remove any SQL code. I emphasis that it works on the one but not on the other. The only difference I have found is that the one that works has an OEM 00.00.0007 and IPL 01.00 and the one that doesn't work has an OEL 01.00.0011 and IPL 01.01.

Please help! I have tried pretty much everything and I really hope someone will give me an answer!

Thanks in advance,

John.



Answer this question

Application works on one handheld but not on the other!!!

  • michael.e.obrien

    Wow. So many of us are experiencing the same issue and poor Symbol support.

    Is there a way to get the Lev2 TS contact information

    It seems that he/she may be the only one aware of this problem with a fix.

    Thanks,

    DB


  • UltimateSniper

    Thanks again for your reply Steve.

    Can I ask what you mean exactly by override the show method of the form

    I display my form with ShowDialog(), so would I declare my override as follows

    public new DialogResult ShowDialog()
    {
    this.MyEventHandlerScanExist
    = new EventHandler(this.OnBarcodeScannedExisting);

    Scanning.MyEventHandler = this.MyEventHandlerScanExist ;
    Scanning.StartRead();

    return base.ShowDialog();
    }

    and lose the Scanning init code from my Activate event handler

    I tried that, and it did make a difference. For one it no longer searches for the missed barcode when i return back to my search screen...however, the ReadNotify event handler on the child forms is never triggered

    Through debugging, I am certain that I call stopread and startread&setup handler as you describe.

    If it is helpful, I am using Virtual Studio 2005 SP1, .NET Framework 2 SP1, Symbol SDK 1.5 AND a Symbol SDK 1.5 patch


  • Samuel L. Wall

    You can post an email where I can contact you, and I will try to help you out with what I know so far. That is basically how I started to solve my problem, the other member sent me the first set of files and I continued from that.

    J

  • levi.rogers

    What are you using to develop, VS 2005 or 2003 What Symbol SDK version are you using and what .NET CF did you install

    We are using VS2005, SDK 1.05, and CF 2.0 SP1. Our application runs but the scanner does not work.

    Is there any other forum you guys are getting help at Symbol Support is clueless.

    M


  • Agent00

    Hi There John,

    I've run into the same problem with a Symbol MC50. Read this post, it may help:
    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=516212&SiteID=1

    Here is the most significant paragraph for you to read:
    The issue is that when I make use of the Symbol scanning (or imaging) API on the MC50 device in my application, and the device memory goes lower than around 7.50 MB (its got the memory slider indicating free program and storage memory on the MC50) I get a SCAN_ENABLE exception. When I get this, it means the scanner is screwed (disabled) until a soft-reset is performed on the device. I guess it doesn't free up all the resources when gets the first error. Symbol have told me that its the compact framework issue (what ever they use for the imager/scanner) as it requires alot of memory to load up - yet the scan wedge application that comes with the device can run when there is barely any memory left on the device (this doesn't use the Symbol scanner/imager API).

    I've just tested this today, and found I was able to recreate the Scan_Enable error at will with the MC50. What I'd recommend is for you to check the memory settings for the device that isn't working. On the MC50's, running Windows 2003, it is done via a slider bar. I'm not sure how to do this with the MC1000, which should be running CE 4.3

    Good luck!
    The Ridge

  • Mason Cox

    I've got the same problem.
    Can you please send me more informations on how to solve this, or the files and how to use them.

    you can send it to jf.willow at wanadoo.fr

    many thanks in advance

    Julien

  • eyupcinar

    (...not sure what's up but when I try to reply to this post in IE7, the page doesn't load - but all seems ok with Firefox )

    Hi Steve,

    Thank you for your kind reply.

    The MC50 scanner/ Symbol C# API has caused me continual frustration. I might have to go back to using the Wedge application if I can not resolve my problem.

    This is my problem in more detail:

    Firstly I have a static instance of the Scanning object, just the same as in the CS_ScanSample3 application.

    I have a start menu form in which I init the scanner :
    public MainMenu()
    {
    InitializeComponent();

    // other stuff...
    Scanning.InitReader()
    }

    private void exitImageBn_Click(object sender, EventArgs e)
    {
    Scanning.TermReader();
    this.Close();
    }

    From the start menu form, the user is able to open a search form and scan a barcode which is searched against, and if matched, resuls in a detail form being presented (from which new items can be scanned). Note that as each form is opened, the parent(s) remain open.

    Start Menu Form
    |
    Search Form
    |
    Results Form
    |
    Scan New Item Form

    Now the search form works fine. I hook it into the scanner as follows:

    private void SearchForm_Load(object sender, EventArgs e)
    {
    MyEventHandlerSearchForm = new EventHandler(OnBarcodeScannedSearchForm);
    Scanning.MyEventHandler = MyEventHandlerSearchForm;
    Scanning.StartRead();
    }
    private void SearchForm_Activated(object sender, EventArgs e)
    {
    Scanning.MyEventHandler = MyEventHandlerSearchForm;
    Scanning.StartRead();
    }
    protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
    {
    Scanning.StopRead();
    base.OnClosing(e);
    }
    private void OnBarcodeScannedSearchForm(object sender, EventArgs e)
    {
    Symbol.Barcode.ReaderData TheReaderData = Scanning.MyReaderData;

    if (TheReaderData.Result == Symbol.Results.SUCCESS)
    {
    result = TheReaderData.Text;
    Scanning.StartRead();
    }
    }

    This seems robust and works just like in the sample apps.

    However, if from the search form, I open a results form and from that, open up a scan new item form - which is the next form I want hooked into the scanner, I experience problems.

    First of all I set up the Scan new item form, in the same way as my search form, with its own OnNotify handler. However, when I scan, the add new item form onNotify handler is not called! I close that form, and then i close its parents results form and I am back to my Search form - where suddenly the search form OnNotify handler is triggered, which promptly searches for the barcode I previously scanned as a new item (!)

    I don't understand why this is happening. My child form event handlers are being loaded into the Scanning object as one would expect,
    Scanning.MyEventHandler = MyEventHandlerAddNewItemForm;

    but only the search form event handler is responding to a scan event.

    I have kludged the app to work somewhat, by adding
    Scanning.TermReader();
    to the constructor of my search results form which appears as a response of finding a search item from the search screen.

    When I do this, the OnNotify event handler for my Add New item form is called correctly. However it isnt long before i get the the dreaded Scan_Enable error requiring a soft reset, because of the constant disposing and instantiating of the scanner because of this kludge.

    Does anyone know what is going wrong Why isnt the OnNotify handler on the child form being called (unless I terminate and reactivate the scanner!)

    I just want to be able to scan on any form I want, with the form's OnNotify handler being triggered, and Scan_Enable errors be avoided.

    many thanks,
    Anthony


  • George2

    How are you going in between the forms as far as the scanner goes. It sounds like you may be instantiating the scanner then disposing of it which may cause this. You should instantiate the scanner once, then terminate before your application closes. When you go in between forms just stop the reading from the scanner, and re-start it on the new form. It seems like I only get this problem with the mc50 when I keep re-deploying my project to the device and usually after a couple type I can't instantiate the scanner b/c of this error. It takes a soft-reset of the device and sometimes a hard reset to fix it. If you let your program run despite the error and you keep stopping and starting it you will eventually run out of memory (their is some sort of memroy leak with the Symbol's scanner object when you get this error). I've also noticed that when I can't enable the scanner, I also cannot enable the imager on the mc50. The mc50 scanner still is a horrible scanner btw.

  • kennm

    This is probably an issue best pursued with Symbol support, or a Symbol forum ...

    That said, it sounds like a configuration/settings issue. Is there a configuration utility available to you Sounds like you need to configure SCAN_ENABLE to true, or something along those lines.


  • mbre

    Where you able to solve this We are having the same problem and nobody at Symbol seems to have a clue.

    Can you please reply with your solution or the forum you used to find it

    J


  • Suman#SS

    Hi guys,

    I run into the same problem with an MC1000 (God damn the device...!) I also use SQLCE3.0 and CFv2.0. When the program starts, the "SCAN_Enable" message appears. The problem was solved by modifying the amount of program memory (increasing it), from Control Panel -> System. Now it works just fine.

    Good luck!


  • Duane Douglas

    Using Virtual Studio 2005 SP1, .NET Framework 2 SP1, Symbol SDK 1.05 AND a Symbol SDK 1.05 FIX and a set of files to be copied to the Platform folder of the device.

    Symbol Support Level 2 Tech helped us out. He sent us some fixes to SDK and Platforms that are not on Symbols website. This contact at Symbol was given from another user on this forum and proved to be great.

    A memory allocation change was also needed.

    In conclusion all of our MC1000s are now working including the ROHS compliant machines that were ginving us the scanner issues.

    M


  • Xancholy

    I too have the same problem - Scan_ENABLE error which forces me to restart my PDA if I want to continue to use the barcode scanner on my mc50.

    I am using VC2005 with the latest 1.5 SMDK and the associated patch.

    Does anyone have any tips or suggestions how to write robust c# code for symbol mc50 that doesn't trigger this SCAN_ENABLE nightmare

    I can trigger this scan_ENABLE just by opening and closing a form, about 5-9 times, which contains a field that accepts scanner input.

    Thanks,

    Anthony
    anthony at dxsolutions.co.uk


  • Pinguino Girl

    One thing you need to make sure is that you are calling a stopread() every time you leave a form. Then every time a form is shown you need to do a startread() and setup the event handler. I wouldn't put your scanner stuff in the Activated event. What I usually do is just overload the show method of the form and put it in the scanner startup code there. Then whenever the form is closed or hidden, I call a stop read. If you follow this method for every form that you use the scanner in it should work.

  • Application works on one handheld but not on the other!!!