Oct 20, 2010
Win7 64 bit; fully patched VS2008 targeting FW2.0; VB.Net; running in Debug Mode (not tested in Release mode)I have a resonably complex app which I am refactoring a bit. As part of that, I relocated some code from a subroutine into a Click Event Handler. The Event Handler will, late in the handler, call the, reduced in function, subroutine. The point of this is thatNow when I click the button associated with the modified Handler I get:A first chance exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll<br />With Error System.AccessViolationException Attempted to read or write protected memory.This is often an indication that other memory is corrupt.
View 10 Replies
at MusicManager2009.frmMain2.cmdLoadAlbum_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
All functions of the app, except those that start from the buttonclick in question, work as before in the problem version.The problem persists after rebuilding the entire solution, after restarting VS, and after rebooting the PC.