المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Acess violation exception before Main?!?



C# Programming
07-21-2009, 04:40 PM
Hi, I have a small application that is exhibiting an AccessViolationException before it even enters Main(). I found this out after the pilot in our production environment started failing from time to time - it would enter some infinite loop somewhere at the end of Main() after all useful code has been executed. I found the access violation when running the app in the debugger.

The tricky bit is that it does not happen in controlled source code (the failure occurs before I reach Main()) so the actual issue is difficult to determine. I would suspect some kind of stack overflow but do to know how to troubleshoot this in Visual Studio. The app is in C#. Any suggestion to get started?