我用c#写了一个低级键盘系统钩子并编译成dll文件导入到一个winform里面,在运行一段时间后,一按任意键,程序就会抛出
A first chance exception of type 'System.AccessViolationException' occurred in Unknown Module.
An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.The program '[2360] ScreenSaver.exe: Managed' has exited with code -1073741819 (0xc0000005)
A first chance exception of type 'System.AccessViolationException' occurred in Unknown Module.
An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.The program '[2360] ScreenSaver.exe: Managed' has exited with code -1073741819 (0xc0000005)
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=d86baf6d-9dcb-408f-8fd8-efebc237edc8