简体   繁体   中英

How to find source of System.ExecutionEngineException Exception

I have a very large application. And my application throw System.ExecutionEngineException sometimes and I cant find source of this Exception. Is there any way find it?

Use WinDBG. For this kind of errors it will give you much more information.

Download and Install Debugging Tools for Windows

You can download previous versions so you don0t need to download the full DDK.

If you want to catch error on live system, you can add logger to your application and write method name/line/other information about where the error occurs into the log(this will certainly work in debug mode). Its not that hard to add such thing even into large project. See http://nlog-project.org/ or http://msdn.microsoft.com/en-us/library/ff664569(v=PandP.50).aspx or smth else. If the system is not live-you can catch error with debug. Do it step-by-step(use F10, F11 in Visual Studio) and you will find it for sure!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM