Autor Beitrag
PhilGo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 31.10.05 18:53 
Hallo...

Ich weis net was falsch ist, aber ich seh den Wald vor lauter Bäumen nicht>.<

Hier meckert er, durch eine Zugriffsverletzung:
ausblenden Delphi-Quelltext
1:
2:
frmOptions.EdtHost.Text := sHost;
frmOptions.EdtUsername.Text := sUsername;


Moderiert von user profile iconChristian S.: Quote- durch Delphi-Tags ersetzt
Moderiert von user profile iconChristian S.: Zusatz "(Hilfe !!)" aus Titel entfernt, die will hier jeder ;-)

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 31.10.05 18:59 
ich denke mal frm sind formular und edt sind edits ?
und die beiden variablen sind strings ?

sind denn beide forms erstellt und angezeigt ?
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 31.10.05 19:02 
jo.. frm = forms, edt = edits
und die variablen sind strings... ja richtig...

Beide Forms sind erstellt denke ich...
ausblenden Delphi-Quelltext
1:
2:
frmOptions.EdtHost.Text := sHost;  
frmOptions.EdtUsername.Text := sUsername;

das wird in der mainform ausgerufen...

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 31.10.05 19:09 
Werden die Edits zur Laufzeit erstellt?

_________________
Programmers never die, they just GOSUB without RETURN
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 31.10.05 19:10 
nein.. die existieren schon

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 31.10.05 19:10 
denke mal nicht, aber probier mal, obs geht wenn das formular angezeigt ist :?
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 31.10.05 19:14 
nee das geht auch nicht...
vielleicht zur info:

Ich lese Ini-Files aus und versuche die info aus den ini files in die globalen (also lese und beschreibbar für beide forumlare) Variablen zu schreiben...

Gelesen sollen die Ini-Daten aus der mainform und geschrieben in die Ini-Datei soll von der Optionform...

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 31.10.05 19:25 
aso, und wann ließt du das aus? Etwa in MainForm.FormCreate? Dann wär das logisch, weil als ersts die MainForm erstellt wird und danach alle anderen OnFormCreate wir nach dem Erstellen der zugehörigen Form ausgelöst, aber noch bevor die nächste erstellt wird. Könnte es das sein? Ansonsten, erstellst du die Optionenform nicht gleich am Anfang?

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 31.10.05 19:55 
oki klappt hatte des im OnCreate ergebniss^^

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!