Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Nov 3 2011 8:35 AM

Hi,
We are using Delphi DLL in our c# application like:
[DllImport("SAPIDLL.DLL")]
public static extern Int32 PSpeak(string Text);

And we are calling this method through delegate Asyncronous then the following error occured:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


Answers (3)