Hello Guest

Author Topic: DivideByZeroException when I update a script in my project  (Read 4798 times)

Dakwamine

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
DivideByZeroException when I update a script in my project
« on: June 13, 2012, 12:24:58 am »
Hi Unikron.

I was wondering what could be the reason for having DivideByZero exceptions at each frame whenever I update a script in my project in realtime (while the Play (and Pause) Button(s) is(are) pushed) in the Unity Editor. Here is the console text:

Code: [Select]
DivideByZeroException: Division by zero
tk2dAnimatedSprite.Update () (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dAnimatedSprite.cs:345)

After that, when I restart the project, there are no problems anymore until I update a script in realtime like said above.

I currently use final 1.7 + patch 2.
« Last Edit: June 13, 2012, 12:31:18 am by Dakwamine »
Unity 3.5.2f2
2D Toolkit Version 1.7 final + patch 2

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: DivideByZeroException when I update a script in my project
« Reply #1 on: June 13, 2012, 12:51:58 am »
Sorry, but what do you mean by "Update a script"?

Dakwamine

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: DivideByZeroException when I update a script in my project
« Reply #2 on: June 13, 2012, 01:01:42 am »
I mean modifying the script, then saving in MonoDevelop then return in Unity. Sorry for the lack of accuracy. :-[

I forgot to mention the Unity version: 3.5.2f2.
I use C# only scripts.
« Last Edit: June 13, 2012, 01:21:05 am by Dakwamine »
Unity 3.5.2f2
2D Toolkit Version 1.7 final + patch 2

Dakwamine

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: DivideByZeroException when I update a script in my project
« Reply #3 on: June 13, 2012, 03:16:06 am »
Mh... It seems that it is a false alarm. For some reason, the Exception has gone. :o

Anyway, thanks for your availability! You are the best. ;D

Best regards.
Unity 3.5.2f2
2D Toolkit Version 1.7 final + patch 2