Setting SetLastError property