RE: Thread Events

From: RonF (RonF_at_discussions.microsoft.com)
Date: 11/29/04


Date: Mon, 29 Nov 2004 14:15:11 -0800

I've tried putting a loop in my thread. I put this loop at the end of my code:

While scanstop = false
end while

I then setscanstop=true in the interrupt handler
again, I don't get to the interrupt

Does this look like what you were suggesting?

Thanks,

Ron

"RonF" wrote:

> I'm trying to use a thread to detect when a scan competes on my Pocket PC
> with built in scanner. I start a thread from the main routine. This thread
> code starts the scanner and it raises an event when the hardware detects a
> barcode. It works fine if I just call the subroutine outside a thread, but
> if I try to run it as a thread it no longer raises the event. I'm guessing
> that the thread terminates before the event can be raised.
>
> How can I get around this problem in the .net compact framework? I'd like
> the scanner to notify my main thread when it successfully reads a barcode.
> Thanks
>



Relevant Pages

  • Re: Thread Events
    ... > While scanstop = false ... > I then setscanstop=true in the interrupt handler ... >> with built in scanner. ... >> barcode. ...
    (microsoft.public.pocketpc.developer)
  • Re: Thread Events
    ... Put a loop in your thread. ... "RonF" wrote in message ... > with built in scanner. ... > the scanner to notify my main thread when it successfully reads a barcode. ...
    (microsoft.public.pocketpc.developer)
  • Re: Constructor Help Needed
    ... import java.util.Scanner;//program uses scanner ... {// Start Rate Method ... {// Start hourly rate loop until positive number is entered ... // Returns the paycheck amount based on doubles, ...
    (comp.lang.java.programmer)
  • Re: java.util.Scanner and EOF/EOT issues
    ... The infinite loop isn't in Scanner, ... code just keeps on checking hasNext(). ... recognized by Character.isWhitespace," which includes line delimiters. ...
    (comp.lang.java.programmer)
  • Re: OO Style with Ada Containers
    ... cursors aren't tagged because an operation can only be primitive for a ... Also included is a simple scanner ... while not End_Of_File loop ... (Word: String; ...
    (comp.lang.ada)