we cannot prevent memory errors but can they be detected