C# Application crashes with Buffer Overrun in deployed (.exe) version, but not in Visual Studio

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-03-17T18:21:13Z Indexed on 2010/03/17 18:41 UTC
Read the original article Hit count: 416

Filed under:
|
|
|

Hi, I have a c# Windows Forms application that runs perfectly from within Visual Studio, but crashes when its deployed and run from the .exe. It crashes with a Buffer Overrun error...and its pretty clear that this error is not being thrown from within my code. Instead, windows must be detecting some sort of buffer overrun and shutting down the application from the outside. I don't think there's one specific line of code that is causing it..it simply happens intermittently.

Does anybody have any thoughts on what the possible causes of a Buffer Overrun error might be, and why it would only occur in the deployed application and not when run from with Visual Studio?

Thanks in advance, Ben

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio