RE: Thread Events
From: RonF (RonF_at_discussions.microsoft.com)
Date: 11/29/04
- Next message: nec_query: "OS Mismatch error"
- Previous message: Goran Ekstrom: "PocketPC platform hardware"
- In reply to: RonF: "Thread Events"
- Next in thread: Chris Tacke, eMVP: "Re: Thread Events"
- Reply: Chris Tacke, eMVP: "Re: Thread Events"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: nec_query: "OS Mismatch error"
- Previous message: Goran Ekstrom: "PocketPC platform hardware"
- In reply to: RonF: "Thread Events"
- Next in thread: Chris Tacke, eMVP: "Re: Thread Events"
- Reply: Chris Tacke, eMVP: "Re: Thread Events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|