Einzelnen Beitrag anzeigen

KPBecker

Registriert seit: 1. Mär 2004
Ort: Mannheim
120 Beiträge
 
Delphi 2010 Architect
 
#4

Re: Zugriffsverletzung nach Einbau einer Groupbox

  Alt 15. Feb 2010, 19:53
Hallo Jens,

Zitat:
Die Adresse verrät das du auf ein nicht instanziertes Objekt zugreifst. Du hast also irgendwo vergessen mit TIrgendwas.Create() ein Object zu erstellen bevor du darauf zugreifst.
Ob der Fehler auftritt oder nicht, hängt nur davon ab, ob ich noch diese eine Groupbox einbaue oder nicht. Es wird aber nie auf diese Groupbox zugegriffen, der Fehler (EAccessViolation...) tritt an einer ganz anderen Stelle beim Aufruf von Application.Messagebox (in UZModVerw s.u.) auf.


Hallo haentschman,

Zitat:
- welche Formulare gibt es ?
- welche Formulare erzeugst du dynamisch ?
- auf welchem Formular sind die Groupboxen die "funktionieren" und wo nicht ?
Ich verwende nur ein Formular, das nicht dynamisch erzeugt wird. Alle Groupboxen sind auf diesem Formular fest integriert, keine erzuge ich zur Laufzeit. (Die Anzeigen steuere ich über Visible:= true/false)
Alle Komponenten stehen in UHauptteil.

Zitat:
- Zeig uns einfach mal die HAUPTPROGRAMM.DPR deines Projektes
Delphi-Quellcode:
program Hauptprogramm;

uses
  Forms,
  UHauptteil in 'UHauptteil.pas{fmHauptteil},
  UKonstanten1 in 'UKonstanten1.pas',
  UHandlung_PT in 'UHandlung_PT.pas',
  UZModDef in 'UZModDef.pas',
  UModell in 'UModell.pas',
  UZModVerw in 'UZModVerw.pas',
  UZHandlung_PT in 'UZHandlung_PT.pas',
  UZKofaktoren in 'UZKofaktoren.pas',
  UKofaktoren in 'UKofaktoren.pas',
  UZPerson_PT in 'UZPerson_PT.pas',
  UPerson_PT in 'UPerson_PT.pas',
  UZGebiet_PT in 'UZGebiet_PT.pas',
  UGitter in 'UGitter.pas',
  UHilfsmethoden in 'UHilfsmethoden.pas',
  UGebiet_PT in 'UGebiet_PT.pas',
  UZRegion_PT in 'UZRegion_PT.pas',
  URegion_PT in 'URegion_PT.pas',
  UZModSim in 'UZModSim.pas',
  USimInit in 'USimInit.pas',
  URegion in 'URegion.pas',
  USimMethoden1 in 'USimMethoden1.pas',
  USimMethoden2 in 'USimMethoden2.pas',
  UStatistik in 'UStatistik.pas',
  UGesamt in 'UGesamt.pas';

{$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TfmHauptteil, fmHauptteil);
  Application.Run;
end.
Beste Grüße
Klaus-Peter
  Mit Zitat antworten Zitat