Home All Groups Group Topic Archive Search About
Author
9 Jan 2007 1:50 PM
marcmc
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.

Author
9 Jan 2007 6:43 PM
William (Bill) Vaughn
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?

--
____________________________________
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)
-----------------------------------------------------------------------------------------------------------------------

Show quote
"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.
>
Author
10 Jan 2007 5:23 PM
marcmc
got it working bill thnx and have the auto's, locals etc windows displayed too.
Cheers

AddThis Social Bookmark Button