- Home /
Question by
Ivian · Jul 02, 2013 at 11:54 AM ·
c#xcodeexc_bad_access
EXC_BAD_ACCESS on try/catch block
Hi.
I'm getting EXC_BAD_ACCESS error on XCode, when I'm trying to catch an exception.
try
{
hit.transform.root.GetComponent<EnemyController>().TakeDamage(damage);
external.ui.CreateText(hit.point,"+" + damage.ToString("#"), Color.red);
}
catch (System.NullReferenceException)
{
external.gameManager.ShootMissed();
};
It's pretty annoying, because the exception is successfully catched in game (when running on iPad not connected to XCode), but xcode freezes the game exec, so i can't debug it. Any ideas how to get rid of it?
Comment
Any solution about this? I have the same problem :( App runs on device and unity player but crashes with EXC_BAD_ACCESS when running in Xcode and device.
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Unity + XCode Problem (really wierd) 0 Answers
Flip over an object (smooth transition) 3 Answers
EXC_BAD_ACCESS IN X-CODE AT CODE LINE "RESOURCES.LOAD<>()" 1 Answer