Free Support Forum -

"Attempted to read or write protected memory" error opening document


I'm getting the following error:

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

... on this line of code:

Aspose.Words.Document doc = new Aspose.Words.Document(templateFileName);

This line used to work. I'm using Visual Studio 2005 on a Vista 64 machine. I upgraded to the latest version (5.0.2) of Aspose Words but I still get this error.


Please try using Aspose.Words 5.0.0. I think that this could help you.

Best regards.

As I mentioned in my post I'm already using 5.0.2. Are you suggesting I downgrade to 5.0.0?


Yes, I suggested 5.0.0. This is known problem of 5.0.2.

Best regards.