Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Fr 17.06.05 17:49 
Hi. Wenn ich einen Delphi Thread erstelle, heißt es dort in der generierten Unit immer, dass ich Zugriffe auf Komponenten aus dem Mainthread mit Synchronize im Mainthread ausführen muss. Ich habs auch mal ohne Synchronize probiert aber da hats net geklappt und mit Synchronize war alles verdammt langsam, weils halt ne aufwendige procedure ist (ich ziechne ein bisschen auf nem Canvas rum, das NUR vom zweiten Thread benutzt wird; der Mainthread benutzt es gar net). Welche Möglichkeiten (wenn ja) gibts, doch aus einem zusätzlichen Thread auf die Komponenten zuzugreifen?

P.S.: muss jetzt leider off, lese die Beiträge auber morgen oder übermorgen

_________________
Programmers never die, they just GOSUB without RETURN
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 17.06.05 20:51 
Hi! :D

Ich kann dir eigentlich nur mal empfehlen, user profile iconLuckie's Thread Tutorial durchzulesen. ;)
:arrow: www.luckie-online.de...reads_mit_Delphi.pdf
:arrow: www.luckie-online.de...reads_mit_Delphi.zip
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Fr 17.06.05 21:53 
Der Thread sollte in eine separate Bitmap zeichnen, die in periodischen Abständen auf dem Hauptformular gezeichnet wird.