Autor Beitrag
Jukka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 107

Win XP Pro
Delphi 7
BeitragVerfasst: Di 05.09.06 19:49 
Hallo ichhabe eine frage:

Ist es möglich das der Pointer in einem Formular gelöscht wird wenn man ein 2. Formular aufruft?

Problem wie folgt:
Auslesen einer Datei in eine Pointerkette
Öffnes eines 2. Formularfenster (ohne inhalt nur test)
Fenster des 2. Formulares schließen
zugriff auf den Pointer -> Zugriffverletzung bei Addresse xxxxxxx


Ich kann mir dies nicht erklären, kann mir da jemand helfen?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 05.09.06 19:52 
IMHO ist das ohne weiteres nicht möglich. Maybe hast du ja im OnClose oder OnDestroy den Pointer freigegeben?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Jukka Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 107

Win XP Pro
Delphi 7
BeitragVerfasst: Di 05.09.06 20:26 
Naja der Pointerist im ersten formular, dann wird ein 2. formular aufgerufen und mit SHow/hide verändert, mach ich Form2.Show und danach direkt Form2.Hide ist der pointer irgendwie weg