Re: StackTrace and StackFrame
anonymous_at_discussions.microsoft.com
Date: 03/12/04
- Next message: anonymous_at_discussions.microsoft.com: "Re: StackTrace and StackFrame"
- Previous message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Calling a static method by name"
- In reply to: Ignacio Machin \( .NET/ C# MVP \): "Re: StackTrace and StackFrame"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 13:21:46 -0800
I am not running from the IDE. I have placed my C#
assembly in the GAC. So should the pdb file also lie in
the GAC? Thanks a lot for your help.
>-----Original Message-----
>Hi,
>
>
> Are you running it from the IDE?
> If not are you sure that the symbols file are present ?
> These are named similar to the assembly but with a pdb
extension.
>
>Cheers,
>
>--
>Ignacio Machin,
>ignacio.machin AT dot.state.fl.us
>Florida Department Of Transportation
>
>"C# beginner" <anonymous@discussions.microsoft.com> wrote
in message
>news:91a001c4086b$0fcbe4c0$a601280a@phx.gbl...
>> StackTrace Trace = new StackTrace(true);
>> int Count = Trace.FrameCount;
>> StackFrame Frame = Trace.GetFrame(0);
>> String FileName = Frame.GetFileName();
>> int LineNumber = Frame.GetFileLineNumber();
>>
>> Hi all
>> I posted this question a few days back. I am trying the
>> above code in my C# assembly. I get Count as 4. But no
>> matter how I try, I can't get the correct filename and
>> linenumber. They are always null and 0 respectively. Can
>> anyone help me resolve this issue?
>> I am using a debug build of my assembly.
>> Thanks a lot in advance for your replies.
>
>
>.
>
- Next message: anonymous_at_discussions.microsoft.com: "Re: StackTrace and StackFrame"
- Previous message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Calling a static method by name"
- In reply to: Ignacio Machin \( .NET/ C# MVP \): "Re: StackTrace and StackFrame"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|