2D Toolkit Forum

2D Toolkit => Support => Topic started by: Dakwamine on June 13, 2012, 12:24:58 am

Title: DivideByZeroException when I update a script in my project
Post by: Dakwamine 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.
Title: Re: DivideByZeroException when I update a script in my project
Post by: unikronsoftware on June 13, 2012, 12:51:58 am
Sorry, but what do you mean by "Update a script"?
Title: Re: DivideByZeroException when I update a script in my project
Post by: Dakwamine 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.
Title: Re: DivideByZeroException when I update a script in my project
Post by: Dakwamine 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.