DJGrenola
15th June 2002, 02:31
This one has *really* annoyed me, as it's effectively going to stop development on my generalised curved volume slider script until it's fixed.
System.onScriptLoaded () {
messageBox ("started", "", 0, "");
Float f1 = 10;
messageBox (floatToString (f1, 10), "", 0, "");
Float f2 = 20;
messageBox (floatToString (f2, 10), "", 0, "");
Float f3 = (f1*f1 - f2*f2);
messageBox (floatToString (f3, 10), "", 0, "");
Float f4 = 1 / f3;
messageBox (floatToString (f4, 10), "", 0, "");
messageBox ("success!", "", 0, "");
}
Winamp beta 3 crashes when it attempts to evaluate f4 (and no, before you ask, it isn't a division-by-zero). I've not tried it with the other builds yet, but it's seriously in need of a fix. I mean, adding poncey new Rectangle classes to the new builds is all very well, but when your floating-point code contains a flaw like this, I reckon a bit more work needs to be done on the core language.
Can someone else *please* compile this and see what happens to them ?
DJG (furious)
System.onScriptLoaded () {
messageBox ("started", "", 0, "");
Float f1 = 10;
messageBox (floatToString (f1, 10), "", 0, "");
Float f2 = 20;
messageBox (floatToString (f2, 10), "", 0, "");
Float f3 = (f1*f1 - f2*f2);
messageBox (floatToString (f3, 10), "", 0, "");
Float f4 = 1 / f3;
messageBox (floatToString (f4, 10), "", 0, "");
messageBox ("success!", "", 0, "");
}
Winamp beta 3 crashes when it attempts to evaluate f4 (and no, before you ask, it isn't a division-by-zero). I've not tried it with the other builds yet, but it's seriously in need of a fix. I mean, adding poncey new Rectangle classes to the new builds is all very well, but when your floating-point code contains a flaw like this, I reckon a bit more work needs to be done on the core language.
Can someone else *please* compile this and see what happens to them ?
DJG (furious)