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.

Sam HobbsRank #107 · 20.5K reputationPosted Nov 3, 2011, 12:05 PM EDT
For the benefit of others, note that this question was also asked in:
Suthish NairRank #92 · 22.8K reputationPosted Nov 6, 2011, 3:29 AM EST
Try this KB.
Nageswararao Dhulipalla74 reputationPosted Nov 7, 2011, 8:58 PM EST