Mega Search
23.2 Million


Sign Up

Make a donation  
Object reference not set to an instance of an object. (XE5)  
News Group: embarcadero.public.delphi.ide

Whenever I am navigating my code and reach a function call where the
target is a normal function defined in another file which is in the
uses clause and I need to see its implementation I right-click to
"Find Declaration".
What should happen is that the implementation of the function is shown
on screen, right?
But what actually happens for me is that an Error box pops up with the
message:
"Object reference not set to an instance of an object."

There is a Details button which shows the following text when clicked.
Why does this happen? Am I forbidden to use standard functions in the
XE5 IDE????

{code}
[2010646A]{refactoride190.bpl} RefactorCmds.GotoSymbolDeclaration
(Line 611, "RefactorCmds.pas" + 12) + $9
[50065E28]{rtl190.bpl  } System.@CheckAutoResult (Line 36231,
"System.pas" + 4) + $6
[2010646A]{refactoride190.bpl} RefactorCmds.GotoSymbolDeclaration
(Line 611, "RefactorCmds.pas" + 12) + $9
[2072DCF1]{coreide190.bpl} CodCmplt.TCodeCompletionManager.Hotlink
(Line 845, "CodCmplt.pas" + 5) + $4
[210E9CF9]{designide190.bpl} Events.TEvent.Send (Line 165,
"Events.pas" + 2) + $11
[20622D8E]{coreide190.bpl}
EditorActions.TEditorActionLists.FindDeclarationExecute (Line 271,
"EditorActions.pas" + 3) + $0
[50173CB3]{rtl190.bpl  } System.Classes.TBasicAction.Execute (Line
16505, "System.Classes.pas" + 1) + $6
[5044C27F]{vcl190.bpl  } Vcl.ActnList.TCustomAction.Execute (Line 284,
"Vcl.ActnList.pas" + 19) + $35
[50173B53]{rtl190.bpl  } System.Classes.TBasicActionLink.Execute (Line
16422, "System.Classes.pas" + 1) + $7
[505752A3]{vcl190.bpl  } Vcl.Menus.TMenuItem.Click (Line 2521,
"Vcl.Menus.pas" + 17) + $7
[5057690F]{vcl190.bpl  } Vcl.Menus.TMenu.DispatchCommand (Line 3436,
"Vcl.Menus.pas" + 5) + $2
[50577B7E]{vcl190.bpl  } Vcl.Menus.TPopupList.WndProc (Line 4597,
"Vcl.Menus.pas" + 4) + $E
[5005F518]{rtl190.bpl  } System.TMonitor.CheckOwningThread (Line
17013, "System.pas" + 2) + $0
[5005F822]{rtl190.bpl  } System.TMonitor.Exit (Line 17199,
"System.pas" + 1) + $2
[5005F873]{rtl190.bpl  } System.TMonitor.Exit (Line 17221,
"System.pas" + 2) + $7
[50444B5B]{vcl190.bpl  } Vcl.Graphics.FreeMemoryContexts (Line 7047,
"Vcl.Graphics.pas" + 12) + $8
[50466CAC]{vcl190.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line
9751, "Vcl.Controls.pas" + 3) + $6
[50577ACD]{vcl190.bpl  } Vcl.Menus.TPopupList.MainWndProc (Line 4572,
"Vcl.Menus.pas" + 2) + $5
[501749C4]{rtl190.bpl  } System.Classes.StdWndProc (Line 17010,
"System.Classes.pas" + 5) + $0
[5059214F]{vcl190.bpl  } Vcl.Forms.TApplication.CancelHint (Line
11117, "Vcl.Forms.pas" + 6) + $E
[50590DC3]{vcl190.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line
10288, "Vcl.Forms.pas" + 23) + $1
[50590E06]{vcl190.bpl  } Vcl.Forms.TApplication.HandleMessage (Line
10318, "Vcl.Forms.pas" + 1) + $4
[50591141]{vcl190.bpl  } Vcl.Forms.TApplication.Run (Line 10456,
"Vcl.Forms.pas" + 26) + $3
{code}

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 22-Jan-2015, at 10:21 AM EST
From: Bo Berglund