Autor Beitrag
P@u1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 117



BeitragVerfasst: Mi 20.01.10 18:01 
Hi,

hab nen noob Problem :D
Also ich hab ne zweite Form erstellt. Jetzt hab ich auf der 1. Form nen Button, der bei Druck Form2.show auslöst. Das führt zu einer Zugriffsverletzung. Wieso?

Danke für eure Hilfe!
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mi 20.01.10 18:16 
Hi :)

user profile iconP@u1 hat folgendes geschrieben Zum zitierten Posting springen:
hab nen noob Problem :D
Musst du nicht extra sagen, das stellen wir dann schon fest :zwinker:

Eine Zugriffsverletzung bedeutet für dich zunächst einmal, dass der Speicher an der betreffenden Stelle(noch?) kein intaktes Objekt enthält. Wahrscheinlich wird das zweite Formular vom Projekt nicht automatisch erzeugt. Wenn dem so ist, müsstest du es unter Project->AutocreateForms noch hinzufügen können.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
P@u1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 117



BeitragVerfasst: Mi 20.01.10 18:39 
leider gibt es in dieser option nur die form der main unit zur auswahl. Weiß wer, wie ich das ändern kann?
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mi 20.01.10 18:46 
Hi :)

Es müsste oben in der Entwicklungsumgebung einen kleinen Knopf mit einem grünen + geben, "unit zum Projekt hinzufügen". Überprüfe doch einmal, ob das Formular danach in der Liste auftaucht.

Ich vermute ja, dass du es irgendwie anders(nicht?) zum Projekt hinzugefügt hast, also die sich das vorstellen. :)

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
P@u1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 117



BeitragVerfasst: Mi 20.01.10 18:53 
vielen dank, das hat funktioniert!