Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   FreePascal (https://www.delphipraxis.net/74-freepascal/)
-   -   Form schmiert ab beim create (https://www.delphipraxis.net/138842-form-schmiert-ab-beim-create.html)

khh 18. Aug 2009 14:20


Form schmiert ab beim create
 
hallo zusammen,
ich erzeuge beim klick auf einen Button ein zweites Form, zeige es modal an und gebe es anschliessend wieder frei.
das hat bisher fehlerlos funktioniert, bis ich einige überflüssige proceduren rausgeworfen habe.:-(
Seitdem schmiert das Form gleich im create mit "project artikel raised exception class external: SIGSEGV" ab.


Ich hab mal bis zum ausstieg durchgesteppt und bin bis zu :
Reader.ReadRootComponent(Instance); in LResources gekommen.

hat hier jemand ne idee, wo ich nach dem Fehler suchen kann?
ich möchte ungern das komplette Form neu erstellen :-(


Gruss KH

Bernhard Geyer 18. Aug 2009 14:22

Re: Form schmiert ab beim create
 
hast du noch eine Komponente mit dem Namen SIGSEGV?

Falls nein: Öffen die DFM im Textmodus und schau ob da noch was drin ist und lösche das.

khh 18. Aug 2009 14:26

Re: Form schmiert ab beim create
 
Zitat:

Zitat von Bernhard Geyer
hast du noch eine Komponente mit dem Namen SIGSEGV?

Falls nein: Öffen die DFM im Textmodus und schau ob da noch was drin ist und lösche das.

in der Formulardatei steht nix mit SIGSEGV :-(

Apollonius 18. Aug 2009 14:28

Re: Form schmiert ab beim create
 
SIGSEGV steht für "Signal Segment Violation" und ist das Linux-Äquivalent zu einer AV.

khh 18. Aug 2009 14:28

Re: Form schmiert ab beim create
 
Zitat:

Zitat von Apollonius
SIGSEGV steht für "Signal Segment Violation" und ist das Linux-Äquivalent zu einer AV.

so was hab ich mir gedacht, allerdings nutzt mir das wohl nicht viel, oder ?

himitsu 18. Aug 2009 14:35

Re: Form schmiert ab beim create
 
hatte über Bei Google suchenSIGSEGV Delphi auch eine anderes Thema dazu in der DP gefunden, aber dieses ohne wirklich Lösung,

aber nun seh ich da oben das Lazerus und ich deneke, daß du durch Ersetzen des "Delphi" eventuell mehr findest :zwinker:

Bernhard Geyer 18. Aug 2009 14:43

Re: Form schmiert ab beim create
 
Zitat:

Zitat von Apollonius
SIGSEGV steht für "Signal Segment Violation" und ist das Linux-Äquivalent zu einer AV.

Äh, FreePascal/Lazarus :oops: Ich klink mich aus. Da habe ich keine Ahnung davon.

khh 18. Aug 2009 14:55

Re: Form schmiert ab beim create
 
Zitat:

Zitat von Bernhard Geyer
Zitat:

Zitat von Apollonius
SIGSEGV steht für "Signal Segment Violation" und ist das Linux-Äquivalent zu einer AV.

Äh, FreePascal/Lazarus :oops: Ich klink mich aus. Da habe ich keine Ahnung davon.



also...
wenn ich das ganze mit dem Schalter Heaptrc-Unit verwenden kompiliere bekomme ich die Fehlermeldung :
TCustomForm.ShowModal impossible

und einen nich enden wollenden heapdump
Delphi-Quellcode:

---------------------------
Error
---------------------------
Heap dump by heaptrc unit

209119 memory blocks allocated : 26409146/27189080

203427 memory blocks freed    : 25154080/25922176

5692 unfreed memory blocks : 1255066

True heap size : 4096000 (128 used in System startup)

True free heap : 2433968

Should be : 2510216

Call trace for block $05472628 size 21

  $00406E7F

  $0044C7F5

  $00682214

  $00681E66

  $0068094C

  $00420D48

  $0068D1EC

  $0069592E

Call trace for block $05CC1448 size 44

  $00406E7F

  $0044C7F5

  $00682214

  $00681E66

  $0068094C

  $00420D48

  $0068D1EC

  $0069592E

Call trace for block $05D52C98 size 21

  $00406E7F

  $0044C7F5

  $00682214

  $00681E66

  $0068094C

  $00420D48

  $0068D1EC

  $0069592E

Call trace for block $0546F688 size 17

  $00406E7F

  $0044C7F5

  $00682214

  $00681E66

  $0068094C

  $00420D48

  $0068D1EC

  $0069592E

Call trace for block $0546F748 size 22

  $00406E7F

  $0044C7F5

  $00682214

  $00681E66

  $0068094C

  $00420D48

  $0068D1EC

  $0069592E

Call trace for block $05D50298 si
---------------------------
OK  
---------------------------

aber damit kann ich jetzt gar nix anfangen :-(


Gruss kh

khh 18. Aug 2009 15:16

Re: Form schmiert ab beim create
 
funktioniert wieder :-)

die Eigenschaft visible war im Objektinspector auf true gesetzt, was wohl die Ursache des Absturzes war, warum auch immer


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:56 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 by Thomas Breitkreuz