stackFrame.GetFileLineNumber returns 0

  • Thread starter Thread starter Anthony Malt
  • Start date Start date
A

Anthony Malt

Hi,

I'm trying to get the current Line Number from the Stack with
stackFrame.GetFileLineNumber, how ever the method return 0.

What's my error?

Thanks in advance for any advice

Anthony
 
Are you running a DEBUG version with the .pdb files accessible to the app?

If not, you won't be able to get the line number.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top