Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#4

Re: Basic TThread doesn't work

  Alt 1. Feb 2008, 08:19
When you call Synchronize the related code runs in the main forms context. In your case DoIt doesn't run in the context of the thread but in the context of your main form. You shoukd only call Synchronize if you want to access your main form for updating displayed data.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat