Autor Beitrag
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Mo 23.07.07 14:43 
Hallo zusammen,

ich habe in meinem Softwareprojekt ein seltsames Problem:
Ich habe 2 Threads laufen. Ein Arbeitsthread und ein GUI-Thread.

Wenn ich im Arbeitsthread eine ShowMessage mache kann es sein (nicht immer), dass diese riesig groß wird,
obwohl ich nur den String '10000ms' ausgebe. So groß, dass sie den gesamten Bildschirm füllt,
oder noch darüber hinaus.

An was kann das liegen?

Ein Synchronize(...) hab ich noch nicht ausprobiert.
Muss man das bei ShowMessage auch verwenden?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 23.07.07 21:00 
Alles was VCL ist muss synchronisiert werden. ShowMessage ruft IIRC intern einige Funktionen von TApplication auf und muss daher synchronisiert werden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
arj Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Mo 23.07.07 21:47 
Ah ok, werd das nächsten Freitag mal probieren hab momentan Urlaub :)

Danke Dir!