Thanks Henry! I think using messages is simpler and right for me.

Gabor

Henry Vermaak írta:
hi gabor

the "event" function is there so you can give the handle to your event
(which you get from CreateEvent).  then you can create a thread that
blocks on this event with one of the wait functions
(WaitForSingleObject, for instance).  when the reader receives a scan,
it will set the event and your thread will resume and process the scan
buffer.

now this method is also platform specific, since the event functions
are in the windows unit.  can anyone comment on this for linux?  my
hunch is that a similar thing must exist...

henry

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to