title: iPhone UISlider crashing
body: <p>I have an UISlider that shows the progress of a song, and the user can go back and forth using it. </p>
  
  <p>I'm using a custom player an the code for my UISlider is the following:</p>
  
  <pre><code>mySlider.value = (float)myAudio.packetPosition  / (float)myAudio.totalTimeInBytes;
  </code></pre>
  
  <p>All works perfectly but sometimes the application crashes, receiving a EXC_BAD_ACESS. Maybe it's a division by zero, I don't know.</p>
  
  <p>How do I prevent this?</p>
  
  <p>Thank you!</p>