AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Delphi mag Antifreeze nicht
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi mag Antifreeze nicht

Ein Thema von citybreaker · begonnen am 21. Mai 2006 · letzter Beitrag vom 23. Mai 2006
Antwort Antwort
citybreaker
(Gast)

n/a Beiträge
 
#1

Delphi mag Antifreeze nicht

  Alt 21. Mai 2006, 17:35
Hallo!

Habe ein Problem. Ich haben ein idAntiFreeze auf meiner Form, wenn
ich die die Application starte, wird ein Fehler angezeigt, dass jeweils
nur ein AntiFreeze in jeder Application sein darf.

Woran kann das liegen? Hab nur einen im Projekt.
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: Delphi mag Antifreeze nicht

  Alt 21. Mai 2006, 20:07
Stelle einen Breakpoint auf den Konstruktor der Komponente und schau dir den Aufrufstack an um zu sehen wo noch eine Instanz erzeugt wird.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
citybreaker
(Gast)

n/a Beiträge
 
#3

Re: Delphi mag Antifreeze nicht

  Alt 22. Mai 2006, 14:45
Wie funktioniert das?
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: Delphi mag Antifreeze nicht

  Alt 22. Mai 2006, 20:14
Zitat von citybreaker:
Wie funktioniert das?
Einen Breakpoint zu setzen oder den Aufrufstack anzuschauen?

Breakpoint: Einfach im Quellcode auf den linken grauen Bereich in der gewünschten Zeile klicken so das die Quellzeile rot markiert wird.

Aufrufstack: Wenn Programm an Breakpoint stoppt. Menu "Ansicht/Debug-Fenster/Aufruf-Stack"
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
torud

Registriert seit: 26. Jul 2002
Ort: Sachsen
1.198 Beiträge
 
Delphi XE5 Professional
 
#5

Re: Delphi mag Antifreeze nicht

  Alt 23. Mai 2006, 18:19
Ich habe vorhin zufällig in der Indy-Hilfe gelesen, dass man nur EIN AntiFreeze pro Form und Application verwenden darf, da ansonsten eine Exception ausgelöst wird.

BTW. Ich habe nicht ganz verstanden wozu diese Komponente da ist...
Danke
Tom
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#6

Re: Delphi mag Antifreeze nicht

  Alt 23. Mai 2006, 18: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
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz