Hi there!
Quite new to VB and .NET, just wondering where the line numbers have gone off of the stack traces
See i'm quite used to Java, and I find it really easy to just fix a bug as i can see exactly where in my code the error has happened, java will say "yep, this method, line 12, you spelt the variable wrong" - you get the idea.
With VB and .NET i've got this:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at ServerPlayListControl.addClips(String sessionID, MediaQueueItem[] items)
at WebService.AddClips(String sessionID, MediaQueueItem[] mediaQueueItems)
That playlist control method is a big one, and i think the exception is lying, cos i dont think i've used a dictionary in that method! If it told me the line number, i wouldnt be wasting my time trying to guess where its going wrong!!!
Sorry if i've been whinging, but i've got the bad feeling that theres no way of seeing the line numbers in stack traces, what i need is for someone clever to tell me how :D
Any help much appreciated.
Cheers
Robert Clarkson
Broadmedia Technology

Line numbers in stack traces
Flinders
Hi Robert!
What version of VB.NET are you using I'm looking at VS 2005 with VB.NEt and we have line numbers.
Some things to try:
- start debugging and hit a break point
- right-click on the CallStack window and make sure "Show line numbers" is selected
You can always double click on a particular item on the call stack, and that will take you directly to the line of code.
If that isn't working please let us know.
Best,
Paul