Autor Beitrag
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: So 17.06.07 21:42 
Hi!
Ich habe hier einen Callstack eines Bugs, den ich leider im Moment nicht reproduzieren kann. Auf Grund des Programmablaufs kann ich aber sagen, dass vorher wahrscheinlich folgende Konstellation vorliegt:
In der angegebenen Instanz des THTMLViewers ist ein HTML Text drinnen. Was für einer, das weiß ich leider nicht (der Fehler taucht leider nicht bei mir auf). Wenn das THTMLViewer.LoadStrings aufgerufen wird, ist das eine leere TStringList. Sprich StringList.Text = '';

Da ich den Fehler nicht reproduzieren kann, fällt mir jegliches Debuggen etwas schwer. Ich hoffe, dass mir jemand evtl. einen Tipp geben kann, was der Ursprung des Fehlers sein kann. V.a. die Funktionalität der letzten drei Funktionen sind mir bisher etwas schleierhaft.

Gruß
alias5000
Der Bugreport sieht folgendermaßen aus:

Access violation at address 00405664 in module 'LanChat2TBX.exe'. Read of address 000000F8.

00405664 +00c LanChat2TBX.exe System 12236 +4 @LStrClr
004065f6 +04a LanChat2TBX.exe System 15179 +42 @FinalizeArray
00406580 +020 LanChat2TBX.exe System 15051 +19 @FinalizeRecord
004046ae +012 LanChat2TBX.exe System 8953 +10 TObject.CleanupInstance
004045f1 +005 LanChat2TBX.exe System 8829 +1 TObject.FreeInstance
004049ee +002 LanChat2TBX.exe System 9530 +0 @ClassDestroy
0053ffd9 +03d LanChat2TBX.exe Htmlsubs 1441 +6 TFontObj.Destroy
00404640 +008 LanChat2TBX.exe System 8849 +1 TObject.Free
0057aa3d +021 LanChat2TBX.exe HTMLUn2 1074 +2 TFreeList.Destroy
00404640 +008 LanChat2TBX.exe System 8849 +1 TObject.Free
00550f72 +01a LanChat2TBX.exe Htmlsubs 9426 +3 TSection.Destroy
00404640 +008 LanChat2TBX.exe System 8849 +1 TObject.Free
0057aa3d +021 LanChat2TBX.exe HTMLUn2 1074 +2 TFreeList.Destroy
00404640 +008 LanChat2TBX.exe System 8849 +1 TObject.Free
0045ad67 +01b LanChat2TBX.exe SysUtils 16911 +3 FreeAndNil
0054572c +054 LanChat2TBX.exe Htmlsubs 4172 +7 TBlock.Destroy
00404640 +008 LanChat2TBX.exe System 8849 +1 TObject.Free
0057aa7d +019 LanChat2TBX.exe HTMLUn2 1083 +2 TFreeList.Clear
0054a2d2 +10a LanChat2TBX.exe Htmlsubs 6177 +30 TSectionList.Clear
0059ac0e +05a LanChat2TBX.exe Htmlview 4179 +8 THTMLViewer.InitLoad
005949e5 +115 LanChat2TBX.exe Htmlview 956 +19 THTMLViewer.LoadString
0059487b +02f LanChat2TBX.exe Htmlview 887 +1 THTMLViewer.LoadStrings

_________________
Programmers never die, they just GOSUB without RETURN
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 17.06.07 22:44 
Die letzten 3 Funktionen (also die ersten 3 Zeilen) sind Compiler-Magic-Methoden, die Speicher freigeben ...

Such den Fehler mal in den letzten 3 Zeilen jeweils die ersten 1-2 Programmzeilen der Routinen) ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.