delphiÍç¼²ÊÕ¼¯
delphiÍç¼²ÊÕ¼¯
delphi·¢²¼ÒѾʮ¶àÄêÁË£¬ºÜ¶àbug һֱδµÃµ½ÐÞÕý£¬¿´¿´´ó¼Ò¶¼Óöµ½Ê²Ã´Íç¼²
1. delphi7¿ªÊ¼¼Ì³ÐµÄdbgrid²»ÄÜɾ³ýмӵÄÁУ¬Ö±µ½delphi2010 »¹´æÔÚ (±ØÈ»)
2. delphi5¿ªÊ¼Óöµ½ Ôö¼ÓеÄʼþÇý¶¯³ÌÐòºó°Ñ ×îºó µÄ .end ¸ãÂÒÌ×,Ö±µ½delphi2010 »¹´æÔÚ (¾³£)
¹ÛÍûÒ»ÏÂ
ºÇºÇ£¬ÍæµÄÉÙ¡£»¹²»ÖªµÀÓÐbug¡£
£¨Ò²ÐíÊÇ5ÍæµÄ·½ÏòÓÚbug²Á¼ç¶ø¹ýÁ˰ɣ©
Delphi(Pascal) code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IniFiles;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
FCacheConfigList: THashedStringlist;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
t: Cardinal;
i: Integer;
begin
t := GetTickCount;
for i := 0 to 10000 do
FCacheConfigList.Add(IntToStr(i + 1));
FCacheConfigList.Sort;{ÎÊÌâÔÚÕâÀµÚÒ»´ÎÅÅÐòºÜ¿ì£¬Èç¹ûÔÙµã»÷Ò»´ÎButton1¾ÍÅÅÐòºÜºÄʱ£¬µÈ´ý´óÔ¼5·ÖÖÓÒÔºóÅÅÐòÍê³É£¬ÔÙµã»÷button1¾ÍûÎÊÌâÁË}
ShowMessage(IntToStr(GetTickCount - t));
ShowMessage(IntToStr(FCacheConfigList.Count));
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
FCacheConfigList := THashedStr
Ïà¹ØÎÊ´ð£º
hongqi162¡¢windindance
´Ë2È˳¤ÆÚ²»ÔÚÏߣ¬ÌرðÊÇwindindance
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
hongqi162»¹ÊǾ³£ÉÏÀ´×ª×ªµÄ
ÒýÓÃ
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
ÆäʵҲ²»ÊÇʲôÄÜÁ¦µÄÔÒò£¬Ö÷Òª¿ÉÄÜÊÇʱ¼äÎÊÌâ°É
¹¤×÷µÄ»¹ÒªÉÏ°à£¬Ñ§Ï ......
³ÌÐòʹÓõÄÊÇOrcalÊý¾Ý¿â£¬Ï붨ÆÚ£¨Ã¿¼¾¶È£©¶ÔÊý¾Ý¿â½øÐб¸·Ý£¬Ã»É¶Í·Ð÷£¬ÇëÎÊÓ¦¸ÃÔõôŪ£¿
ÓÐÊ²Ã´ÌØÊâÒªÇóÂ𣬱ÈÈçҪǰ¶Ë½çÃæ£¿
Ò»°ãÓÃÊý¾Ý¿â×Ô´øµÄ¡°¼Æ»®ÈÎÎñ¡±ÅäÖÃһϾ͹»ÁË
ûÓÐÊ²Ã´ÌØÊâÒªÇó¡£ÀýÈ磬ֻҪµ ......
ÊÖÍ·ÓÐÒ»¸öСCASE£¬ÒªÓõ½Êý¾Ý¿â£¬Ïë²ÉÓÃSQLite¡£
ÓÐÓùýµÄÅóÓÑÂð£¿
ÒªÔõô°²×°sqlite·þÎñ£¿»¹ÊDz»ÐèÒª°²×°£¿
ÓÃʲôÈí¼þÀ´¹ÜÀíSqliteÊý¾Ý¿â£¿ÈçÌí¼Ó±í£¬Ð´´æ´¢¹ý³ÌµÈ¡£
delphiÖÐÔõôÑùÁ¬½Óµ½sqliteÊý¾Ý¿â£¿ÓÃʲ ......
µ¥¾ÍDELPHI±àÒëÆ÷¶øÑÔ£¬ÎÒ¼òµ¥×ܽáÁËÏ´ÓD7µ½D2010ÒÔÀ´µÄһЩÐµĶ«Î÷
1¡¢ Unicode String Ö§³Ö£¬Õâ¿ÖÅÂÊÇ×î´óµÄ¸Ä±ä£»
2¡¢ еÄRTTI»úÖÆ£¬ÊÔÓÃÁËһϣ¬È·Êµ±ÈÒÔǰÄǸöºÃÌ«¶àÁË£»
3¡¢ ·ºÐÍ£¨Generics£©£¬delphiÒ² ......