|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Studio 2005Where is the auto tab on VS 2005 during debug to show you things like the
cn.state, dtr state etc? I cannot find it. Also, vb.net 2005 is saying that i have a Null Reference Exception on the following line which worked perfectly in VS 2003 dtr = cmdSelect.ExecuteReader The Exception Helper says to "use the New keyword to create an object iunstance" which i have tried but may not have the syntax for. Any ideas much appreciated. Yup. There is an "autos" tab. (Debug | Windows | Autos). You can also set a
watchpoint on the property. Did you declare the DataReader as in: Dim x as SqlDataReader ? Is the Command object instantiated? Did you break at this point and examine the instantiation state of the variables? -- Show quote____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP INETA Speaker www.betav.com/blog/billva www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ Visit www.hitchhikerguides.net to get more information on my latest book: Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition) and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ----------------------------------------------------------------------------------------------------------------------- "marcmc" <mar***@discussions.microsoft.com> wrote in message news:87E51009-D3D8-4A3E-ACDC-89934020457A@microsoft.com... > Where is the auto tab on VS 2005 during debug to show you things like the > cn.state, dtr state etc? I cannot find it. > > Also, vb.net 2005 is saying that i have a Null Reference Exception on the > following line which worked perfectly in VS 2003 > > dtr = cmdSelect.ExecuteReader > > The Exception Helper says to "use the New keyword to create an object > iunstance" which i have tried but may not have the syntax for. > > Any ideas much appreciated. > |
|||||||||||||||||||||||