need a way to check for memory errors.

Ahhh ...

I thought the title meant that the OP wanted to detect when a memory cell would no longer reliably hold data.

...R