I got OSAtomicCompareAndSwap64 when:
int64_t received = 0;
if (OSAtomicCompareAndSwap64(0, 128, &received) == YES) { <--- Error here
// Do something
}
It was running good under simulator but not in device.
It shows EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN) during runtime. Could anyone help?
Thanks
Aucun commentaire:
Enregistrer un commentaire