Thema
:
Delphi
Delphi mag Antifreeze nicht
Einzelnen Beitrag anzeigen
Klaus01
Registriert seit: 30. Nov 2005
Ort: München
5.772 Beiträge
Delphi 10.4 Sydney
#
6
Re: Delphi mag Antifreeze nicht
23. Mai 2006, 19:29
Aus der Hilfe:
Zitat:
Prevents an application UI from freezing.
TIdAntiFreeze = class(TIdAntiFreezeBase)
Description
Indy
works on the blocking model. That is when calls are made to
Indy
the do not return until they are complete. If calls are made in the main thread this will cause the Application User Interface to "freeze" during
Indy
calls. TIdAntiFreeze counter acts this effect. TIdAntiFreeze allows
Indy
subsystem to make Application.ProcessMessage calls so that Windows messages continue to be executed while
Indy
calls are in process.
Only one TIdAntiFreeze can be active in an application. If another instance already exists, an
exception
is raised. TIdAntiFreezeBase uses the global variable GAntiFreeze, declared in the TIdAntiFreezeBase
unit
, to determine if another instance has already been created.
Note: GAntiFreeze is not assigned if an instance is added in the form designer (during design time).
Note: The TIdAntiFreeze.pas
unit
must NOT appear in the uses clause of any
Indy
or descendant
unit
. This
unit
is linked in an application when the component is placed on a Form. This is done to preserve isolation from the FORMS.PAS and QForms.pas units.
Grüße
Klaus
Klaus
Zitat
Klaus01
Öffentliches Profil ansehen
Mehr Beiträge von Klaus01 finden