What are the challenges you face when working across database platforms? Take the survey
Options

Exception in VS 2008

alekdavisalekdavis Posts: 6
edited April 25, 2008 5:46PM in SQL Prompt Previous Versions
I was working with a SQL script in a VS 2008 database project (Win XP SP2, SQL Server 2005), and when I moved a cursor to a file editor window and hit a keyboard key (to type a word), I got the
'Object reference not set to an instance of an object' exception (I'm using SQL Prompt v. 3.8.0.224):

---
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at RedGate.SqlPrompt.Engine.SqlPromptEngine.ParameterPrompt()
at RedGate.SQLPrompt.CommonUI.Editor.EditorWindowBase.OnCaretPoitionChanged()
at RedGate.SQLPrompt.CommonVS.Editor.TextViewMonitor.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
---

It happens quite often, e.g. when I enter a space character or double-click . basically, it's next to impossible to use in a VS 2008 database project.

Comments

  • Options
    After restarting Visual Studio, the problem is gone. I've been working all day today and never got an error. :) I'll post an update if I see this again (hopefully not).
Sign In or Register to comment.