c# - Program hanging point identification -
there c#-program hangs pretty rare. execution of program takes place on remote machines , start debugger not option. run external profiler more realistic, conjugate huge difficulties. how can determine point of program hang without profiler or debugger?
option "detailed logging on fs" poorly suited. program consists of 20 thousand lines of code , hangs not often.
i have tried process explorer works strange (or have not understood it). if have managed "catch" moment when thread entered infinite loop, possible see stack in moment. thread disappears quite (whether in pe or killed environment).
the option create application, application-monitor, acceptable. if can how create dump of main process or obtain information threads of main process, great. if have ready tools, better.
when application crashes, should logged window's application event log
. it's not extremely detailed, should give pretty solid clues anyway without external tools needed.
to there, can either search "event log" in start menu or find in control panel. located in administrative tools
section.
once you're in event viewer, open windows logs
item on left select application
. should able find application in list using source column.
at bottom you'll find error detail, timestamp , couple more infos can debug application.
picture taken cyberlink.com
Comments
Post a Comment