Thema: Delphi Realtime Input? Thread?

Einzelnen Beitrag anzeigen

Olli
(Gast)

n/a Beiträge
 
#7

Re: Realtime Input? Thread?

  Alt 14. Mai 2006, 13:23
If it runs in a separate thread MSDN-Library durchsuchenSuspendThread and MSDN-Library durchsuchenResumeThread might be exactly what you are searching for.

However, if you suspend the thread from the outside, the context is undetermined. So if you want the thread to be suspended at a certain position, it may suspend itself using SuspendThread and be woken up from another thread using ResumeThread.

Note: if you have the usual Delphi-like architecture of an application, there is only one main thread with a message queue. So to achieve the above you need to have a secondary thread at least. And be sure to sync them because the VCL does not like threads too much
  Mit Zitat antworten Zitat