AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi Zugriffsverletzung bei visible:=true von form
Thema durchsuchen
Ansicht
Themen-Optionen

Zugriffsverletzung bei visible:=true von form

Ein Thema von Sebbel · begonnen am 11. Aug 2008 · letzter Beitrag vom 12. Aug 2008
 
Sebbel

Registriert seit: 5. Jun 2005
21 Beiträge
 
#5

Re: Zugriffsverletzung bei visible:=true von form

  Alt 12. Aug 2008, 00:00
Okay, formSettings ist noch nicht erstellt. Wie sorge ich dafür?

Entweder steh ich im Moment gewaltig auffem Schlauch oder ich weiss auch nicht. Einen solchen Fehler hatte ich noch nie in diesem Zusammenhang


edit:

es geht jetzt! Ich habe mir im Debugger das den Aufruf-Stack anzeigen lassen, der so aussah:

Delphi-Quellcode:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas{Form1},
  Unit2 in 'Unit2.pas{addPatient},
  mysqlqueries in 'mysqlqueries.pas',
  Unit5 in 'Unit5.pas{doctorFrame},
  settings in 'settings.pas{formSettings};

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TaddPatient, addPatient);
  Application.CreateForm(TdoctorFrame, doctorFrame);
  Application.CreateForm(TformSettings, formSettings); //das hier muss ganz nach oben
  Application.Run;
end.

daraus wurde dann

Delphi-Quellcode:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas{Form1},
  Unit2 in 'Unit2.pas{addPatient},
  mysqlqueries in 'mysqlqueries.pas',
  Unit5 in 'Unit5.pas{doctorFrame},
  settings in 'settings.pas{formSettings};

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TformSettings, formSettings); //<--so ist das schon besser!
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TaddPatient, addPatient);
  Application.CreateForm(TdoctorFrame, doctorFrame);
  Application.Run;
end.
  Mit Zitat antworten Zitat
 


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 20:54 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz