查看地址: http://dn.codegear.com/article/37483
以下是几个经常碰到的问题:
QC# | Project | Area | |
52256 | Delphi | VCL/Core VCL Classes/TApplication | |
Description: | Steps: | ||
Taskbar button is not hidden when the MainForm is hidden and MainFormOnTaskbar is False. 任务栏按钮在设置MainFormOnTaskbar属性为False, 且主窗体被隐藏时并不会隐藏。 | * File New VCL Application * Drop a button on the form * In the OnClick handler, enter "Hide;" * View | Project Source * Set Application.MainFormOnTaskbar := False; * Run, click on the button // Exp: The taskbar button is hidden // Act: The taskbar button is still visible |
QC# | Project | Area | |
52905 | Delphi | RTL/Delphi/File Management | |
Description: | Steps: | ||
[QC Short Description] | 1. Create a new VCL application 2. Write the following into the Form's OnCreate handler: begin if FileExists('C:/pagefile.sys') then ShowMessage('OK') else ShowMessage('Failed'); end; Expected: A "OK" dialog is displayed Actual: A "Failed" dialog is displayed |
QC# | Project | Area | |
51727 | Delphi | RTL/Delphi/RTL Exceptions | |
Description: | Steps: | ||
[QC Short Description] Halt in except block causes messagebox at program termination 在Except块中调用Halt会弹出MessageBox对话框 [QC Description] If you call Halt in an except block, a message box pops up that shows the last exception. Even EAbort exceptions are shown. In a console application it shows the exception in ErrOut. The _Halt0 function should release the ExceptObject before entering the FinalizeUnits loop. QC Entry 51727 | 1. Create a new VCL application 2. Add the following code to the OnCreate handler try Abort; except On E: Exception do Halt(1); end; 3. Start the application Expected: The application terminates Actual: The application shows "Exception EAbort in module Project4.exe at 00049F63. Operation aborted." |