![]() |
Delphi IDE Bug
hi Leute,
mir ist neulich ein bug in Delphi (6+7) aufgefallen (bei uall's ring0 unit) der dazu führt das Delphi total abstürzt. Also ich zeig mal ein Beispiel:
Delphi-Quellcode:
ruft man nun z.B. "Unit1." auf sollte normalerweise die Box (wo alle Befehle, Klassen stehen) kommen. Jedoch kommt es das erste mal zu einer Fehlermeldung:
// dieser record muss in z.b. Unit1 deklariert werden, unter TForm usw.
type PMyRecord = ^PMyRecord; // das ist das Problem .. TMyrecord = packed record Value1: PChar; Value2: Integer; Value3: ShortString; Value4: Cardinal; Value5: Pointer; end; Zitat:
Ich bin jedoch nicht sicher ob der Fehler noch unter Delphi 2005 und 2006 noch dabei ist. |
Re: Delphi IDE Bug
ich habe D6 Pro und bei mir gibt es keinerlei Probleme, er komp. und startet einwandfrei!
|
Re: Delphi IDE Bug
1.) (Sicher nur tippfehler) müßte es
Delphi-Quellcode:
heißen.
PMyRecord = ^TMyRecord;
Aber unter D2006 funktioniert es problemlos. |
Re: Delphi IDE Bug
Zitat:
Zitat:
Ich hab mir das so vorgestellt:
Delphi-Quellcode:
unit Unit1;
interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; type PMyRecord = ^PMyRecord; // das ist das Problem .. TMyrecord = packed record Value1: PChar; Value2: Integer; Value3: ShortString; Value4: Cardinal; Value5: Pointer; end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin { wenn man das hier eintippt kommt die box, und weil man oben PMyRecord = ^PMyReord gemacht hat stürzt Delphi ab wenn es alle Funktionen auflisten sollte } Unit1. end; |
Re: Delphi IDE Bug
Also D2006 weigert sich das zu kompilieren, da die "Typdefinition unvollständig" sei.
|
Re: Delphi IDE Bug
Zitat:
Das war auch der Grund für den Absturz, da hier die Code-Insight Methoden sich bis zum Stack-Overflow iterativ aufgerufen haben. ...:cat:... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:52 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