Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rtutus
Aged Yak Warrior
522 Posts |
Posted - 2006-05-14 : 18:31:39
|
I am coding using VB.net a windows form application. Sometimes, while the form is being loaded I get the error : An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dllAdditional information: Object reference not set to an instance of an object.When I break runing the aplication It doesn't put the cursor inside the code in order for me to locate the pb but it points it to the begining of my class: Public Class frmAcctI already put Try Catch exception. How do I get the line number of the problem pls or how do I get a more detailed description of the pb.Thanks a lot.Thanks |
|
dfiala
Posting Yak Master
116 Posts |
Posted - 2006-05-14 : 20:45:02
|
The stack trace on the exception usually includes the line number where the error occured.Catch Ex As Exception System.Diagnostics.Debug.Write(ex.StackTrace)End TryDean FialaVery Practical Software, IncNow with Blogging...http://www.vpsw.com/blogbabyMicrosoft MVP |
 |
|
rtutus
Aged Yak Warrior
522 Posts |
Posted - 2006-05-16 : 01:51:23
|
Thank you |
 |
|
|
|
|