![]() |
Zugriffsverletzung bei Tform.update
Hallo,
habe foldenden code:
Code:
Bei FSplash.update kommt es immer zu einer zugriffsverletzung. Woran liegt dies? Wenn ich den Code Zeile fuer Zeile debugge, kommt diese Verletzung nicht. Wo kann das Problem liegen?
FSplash := tFSplash.Create (Application);
Try // SplashScreen Fenster anzeigen Application.Initialize; Application.Title := 'WWCL Tool 1.0'; Application.CreateForm(Tfmain, fmain); FSplash.Show; fsplash.Update; Application.CreateForm(Tform2, form2); Application.CreateForm(Tform3, form3); sleep(300); FSplash.Hide; finally FSplash.Free; end; Application.Run; end. Im oncreate von fmain fuelle ich eineImagekomponente des FSplash Formulars mit einem Bild, aber das muesste ja auch ok sein, da das fsplash- Formular ja bereits erzeugt wurde Danke fuer eure Hilfe lkz633 |
Re: Zugriffsverletzung bei Tform.update
Moin lkz,
wenn ein Fehler im normalen Programmlauf auftritt, beim Singlestep aber nicht, liegt vermutlich ein Timingproblem vor. Eine Funktion will etwas verarbeiten, dass noch nicht da ist. Warum lässt Du die Update Zeile nicht weg, bzw. ersetzt sie durch Application.ProcessMessages? |
Re: Zugriffsverletzung bei Tform.update
Weglassen habe ich bereits versucht, dann wird das Fenster nicht angeyeigt, und bei application.processmessages kommt auch eine Zugriffsverletzung
Gruss lkz633 |
Re: Zugriffsverletzung bei Tform.update
Moin lkz,
kann es sein, dass TFSplash einen Fehler hat? |
Re: Zugriffsverletzung bei Tform.update
leider nein, da das Fenster rein gar nichts macht, ausser ein jpg bild und eine Caption anzeigt. Gibt es vielleicht Probleme mit JPG und Update/processmessages?
Gruss lkz633 |
Re: Zugriffsverletzung bei Tform.update
Moin lkz,
statt
Delphi-Quellcode:
probier's mal mit
FSplash := tFSplash.Create (Application);
Delphi-Quellcode:
FSplash := tFSplash.Create (nil);
|
Re: Zugriffsverletzung bei Tform.update
Leider hat auch dieses nicht geholfen.
Ich verstehe das nicht, wie kann durch ein application.porocessmessages eine Zugriffsverletzung zustande kommen. Gruss lkz633 |
Re: Zugriffsverletzung bei Tform.update
Schon mal das Jpeg entfernt und dann versucht?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:26 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