Autor Beitrag
DelphiMan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Sa 29.03.03 14:13 
Hallo zusammen!

Ich habe mittlerweile ein recht großes Programm zusammengestellt, sprich mehrere Formulare mit vielen Komponenten drauf.
Lege ich jetzt eine weitere Komponente auf das Hauptformular - egal welche - und starte das Programm so läuft alles wie es soll. Beendet man das Programm jetzt allerdings, so tritt eine EAccessViolation-Fehlermeldung auf!? Lösche ich die Komponente wieder dann gehts wieder. Wisst ihr woran das liegen kann??
Wäre super wenn ihr mir weiterhelfen könntet! Danke im Voraus!

MfG
DelphiMan
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Sa 29.03.03 14:16 
Vielleicht solltest Du mal sagen, um was für eine Komponente es sich handelt, und ob es bei anderen Komponenten auch auftritt.
DelphiMan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Sa 29.03.03 15:18 
Titel: egal welche
wie schon gesagt: diese fehlermeldung tritt auf sobald eine neue komponente (EGAL WELCHE) hinzugefügt wird und das programm zur laufzeit wieder beendet wird.
das problem liegt glaub ich hieran:
ausblenden Quelltext
1:
2:
  if Assigned(FDatabase) then
    FDatabase.RemoveTransaction(Self);

dort (destructor der Transaction-Komponente von ZEOS) wird eine exception ausgelöst.

Was ist zu tun?

MfG
DelphiMan

Moderiert von user profile iconTino: Code-Tags hinzugefügt.