On Aug 10, 12:10 pm, "Michel Vanderbeke" <michel.vanderb...@skynet.be>
wrote:
Hello,
While logging the errors in my program, I want to know in which class,
function or procedure they occured.
Is it possible to know the name of the class, function and / or procedure in
which the error was produced? Is it also possible to know at which line
number of the program the error occured?
Many thanks and greetings,
Michel
In debug mode this information is available - see your other post
where I talk about the try...catch statement. You can gather most of
this information from the stacktrace property of the exception object.
In release mode however, most of this information is gone, as the
application has been compiled into IL and your app as you know it no
longer exists. You should do some experimenting on your own to see the
changes in stacktrace et al when you are in release mode compared to
debug mode.
Thanks,
Seth Rowe