then just the Parant method .... cause if i have a method with 100 lines,
..
..
..
..
..
..
..
..... I don't know if this was ever in C# like there is trace in JAVA where
Thx.
"Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:D59F1EF2-7414-4FE6-B404-DB76DF29389F@microsoft.com...
> CallStacks don't have line numbers in them, only the method names.
>
> When running code the runtime runs IL, not C#--so line numbers are
> meaningless at that point.
>
> --
> Browse
http://connect.microsoft.com/VisualStudio/feedback/ and vote.
>
http://www.peterRitchie.com/blog/ > Microsoft MVP, Visual Developer - Visual C#
>
>
> "Kristijan Marin" wrote:
>
>> Hi,
>>
>> Can please anyone tell me why do i get only the first method in which the
>> exception was thrown and not the line that triggered the exception ? I
>> don't
>> know if I set something in VS2005 wrong or what the hell is wrong ....
>>
>> I have a Windows Service in RELEASE mode , on VS2005 C# .....
>>
>> So to summarize ... when the exception is thrown, I catch it and display
>> the
>> stacktrace of the exception, but as I said above, only the calling method
>> is
>> showen..... the exception is thrown in QueueService.queueTimer_Elapsed
>> method .....
>>
>>
>> Thanks a lot.
>> Kris
>>
>> Example :
>>
>> <here I would expect to see the line of exception or at least the name
>> of
>> the method ....>
>> at ReportQueueService.QueueService.queueTimer_Elapsed(Object sender,
>> ElapsedEventArgs e)
>> at System.Timers.Timer.MyTimerCallback(Object state)
>> at System.Threading._TimerCallback.TimerCallback_Context(Object state)
>> at System.Threading.ExecutionContext.Run(ExecutionContext
>> executionContext, ContextCallback callback, Object state)
>> at System.Threading._TimerCallback.PerformTimerCallback(Object state)
>>
>>
>>