Autor Beitrag
Tana´Ri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 230



BeitragVerfasst: Do 17.03.05 15:26 
Hi Leute,

wenn mein TServerSocket unter Last gerät, lähmt er mein Hauptformular.
Frage: Würde ein Datenmodul diesbezüglich Abhilfe schaffen oder muss sie in ein Thread auslagern werden?

_________________
mfg
Tana´Ri
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 17.03.05 15:27 
Ich würde einen Thread nehmen...

AXMD
Tana´Ri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 230



BeitragVerfasst: Di 29.03.05 08:42 
Hi

hab den TServerSocket jetzt in einen Thread ausgelagert, d.h. erzeuge ihn im Create und schließe ihn (Close) im Terminate, im Destroy sollte er mit Free freigegeben werden doch dies führte zu einer Exception. Ich habe dies jetzt so gelöst das ich die Instanzadresse einfach auf NIL setzte. Mich würde aber mal interessieren warum das Free der Klasse TServerSocket eine Exception wirft. (Owner beim Create von TServerSocket is NIL)

_________________
mfg
Tana´Ri