Preventing Stack Corruption

I recently investigated stack corruption issue related to P/Invoke. In this post I am going to share my experience. I will show you a simple and yet effective approach to avoid similar problems. The Bug A colleague of mine discovered the bug during debugging piece of code in JustTrace dealing with ETW. The issue was …