.net - Get the currently executing method name of current thread -


i using background worker process big files in loop lasting hours. in gui, show progressed file label, , progressbar control. of time ok.

my problem is; sometimes, (maybe locked or corrupt files, although handled everthing in try catches), after hours, current file name , progressbar value doesn't change on gui (for ex. @ 10000 th. file), although gui still responsive me...that is, not gui freeze issue. doesn't background worker finished (i handled both reportprogress , completed events correctly)..and unfortunately, keeps @ state, kill , restart program, again stucks @ same file.

so; want understand (at method, or line) code got stuck...try catch blocks doesnt give me clue..

to achieve this, planning put button on gui, , when got stuck on file, press button , it'll give me debug information, containing executing (stucked namely) method name , line number if possible...

stacktrace etc. not solution, since when use it, gives me trace of method wrote in...

any idea?

(solutions such as, continuing next line of code suffices me, dont want restart program , lose time again)

you try new component developed microsoft clr team: clrmd: .net crash dump , live process inspection

clrmd set of advanced apis programmatically inspecting crash dump of .net program in same way sos debugging extensions (sos). allows write automated crash analysis applications , automate many common debugger tasks.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -