Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Refactoring
C++Rename
C++Undo Support
Change Parameters
Create Variable
Declare Field
Declare Variable
Extract Interface
Extract Method
Extract Resourcestring
Extract Superclass
Find Class
Find References
Find Unit
Inline Variable
Introduce Field
Introduce Variable
Move Members
Pull Member Up
Push Members Down
Rename
Safe Delete
Undo Support
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Refactoring/Rename
[ Add a report in this area ]
Report #:
78512
Status:
Need Feedback
Sometimes pressing the shortcut (Ctrl-Shift-E) will raise an exception, insteading of the rename window, but it's always ok that rename by menu .
Project:
Delphi
Build #:
14.0.3513.24210
Version:
14.0
Submitted By:
Baoquan Zuo
Report Type:
Basic functionality failure
Date Reported:
10/9/2009 2:23:55 AM
Severity:
Serious / Highly visible problem
Last Updated:
10/11/2009 4:42:07 AM
Platform:
All versions
Internal Tracking #:
Resolution:
Need More Info
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
It happened many times that an error dialog appeared when I press Ctrl-Shift-E to rename a variable/classname,
but it's always ok when I use the menu to perform the operation.
the error message is
"Object reference not set to an instance of an object."
And the Details:
[20444764]{refactoride140.bpl} RefactorCmds.UpdateRefactoringAction (Line 261, "RefactorCmds.pas" + 2) + $9
[20445E54]{refactoride140.bpl} RefactorCmds.TDelphiRefactorMenuItem.Update (Line 655, "RefactorCmds.pas" + 2) + $12
[5007567F]{rtl140.bpl } Classes.TBasicAction.Update (Line 12522, "Classes.pas" + 3) + $7
[502B1880]{vcl140.bpl } ActnList.TContainedAction.Update (Line 463, "ActnList.pas" + 8) + $28
[5007556D]{rtl140.bpl } Classes.TBasicActionLink.Update (Line 12465, "Classes.pas" + 0) + $5
[5027FFEB]{vcl140.bpl } Menus.TMenuItem.InitiateAction (Line 2457, "Menus.pas" + 0) + $B
[502803BD]{vcl140.bpl } Menus.TMenuItem.InitiateActions (Line 2613, "Menus.pas" + 2) + $B
[50281BF6]{vcl140.bpl } Menus.DoClick (Line 3601, "Menus.pas" + 40) + $E
[50281B39]{vcl140.bpl } Menus.DoClick (Line 3565, "Menus.pas" + 4) + $A
[50281CEB]{vcl140.bpl } Menus.TMenu.IsShortCut (Line 3655, "Menus.pas" + 38) + $6
[5029CAF4]{vcl140.bpl } Controls.TWinControl.IsMenuKey (Line 11435, "Controls.pas" + 8) + $12
[5029CB69]{vcl140.bpl } Controls.TWinControl.CNKeyDown (Line 11455, "Controls.pas" + 5) + $4
[207D4D99]{coreide140.bpl} EditorControl.TCustomEditControl.CNKeyDown (Line 2016, "EditorControl.pas" + 20) + $4
[50295DFC]{vcl140.bpl } Controls.TControl.WndProc (Line 7062, "Controls.pas" + 91) + $6
[20D7C74E]{designide140.bpl} DeskUtil.SetFocusHook (Line 454, "DeskUtil.pas" + 4) + $C
[5029A6C0]{vcl140.bpl } Controls.TWinControl.WndProc (Line 9819, "Controls.pas" + 144) + $6
[214BAF33]{vclactnband140.bpl} ActnMenus.CallWindowHook (Line 743, "ActnMenus.pas" + 20) + $F
[50299D60]{vcl140.bpl } Controls.TWinControl.MainWndProc (Line 9540, "Controls.pas" + 3) + $6
[50076360]{rtl140.bpl } Classes.StdWndProc (Line 13014, "Classes.pas" + 8) + $0
[502C8464]{vcl140.bpl } Forms.TApplication.IsKeyMsg (Line 9687, "Forms.pas" + 25) + $12
[502C84FE]{vcl140.bpl } Forms.TApplication.IsHintMsg (Line 9708, "Forms.pas" + 3) + $2
[502C8725]{vcl140.bpl } Forms.TApplication.ProcessMessage (Line 9778, "Forms.pas" + 24) + $32
[502C878E]{vcl140.bpl } Forms.TApplication.HandleMessage (Line 9814, "Forms.pas" + 1) + $4
[502C8AB9]{vcl140.bpl } Forms.TApplication.Run (Line 9951, "Forms.pas" + 26) + $3
[0042D94A]{bds.exe } bds.bds (Line 200, "" + 8) + $FFFB
Steps to Reproduce:
1. Start Delphi 2010
2. New Items-> click Package
3. New Unit
4. type the following code:
unit Unit2;
interface
type
TSame = class
public
procedure Test;
end;
implementation
{ TSame }
procedure TSame.Test;
begin
end;
end.
5. locate the cursor in the Test method, and press ctrl-shift-e
6. An error dialog with the message "Object reference not set to an instance of an object." appeared insteading of the refactor-rename dialog.
Workarounds
None
Attachment
None
Comments
Tomohiro Takahashi at 10/9/2009 6:28:42 AM
-
Could you please provide Steps(sample code etc...) to reproduce your issue?
Baoquan Zuo at 10/9/2009 11:31:24 PM
-
I did. it seems that the error only occurs when renaming items in a package.
Tomohiro Takahashi at 10/11/2009 4:42:00 AM
-
I can not reproduce your issue.
> 5. locate the cursor in the Test method, and press ctrl-shift-e
Could you tell us exactly where you locate the cursor?
Baoquan Zuo at 10/11/2009 9:20:04 PM
-
sorry, it's so strange that I can't reproduce it again.
Tomohiro Takahashi at 10/12/2009 5:57:45 PM
-
Ok, if you find steps, please update [Steps] area.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us