Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 968 |
Very weird bug in SIN() & COS() |
le 15/10/2004 @ 04:23 par Ken
|
This one's got me stumped. I just got the full version 2.0 and I was playing with the sample programs. When I compiled and ran iBClock, I kept getting a "Fatal Error" and had to do a soft reset. To make a long story short, I tracked the problem down to the "DrawScreen" subroutine, specifically the line "X=COS(I) * 35 + 120". I tested some more and found I it consistantly broke whenever the program tried to take the SIN or COS of 0.8! Not 0.78; that worked fine! http://www.aldweb.com/inc/img/smileys/eek.gif
Any ideas? I'm using a Sony Clie SJ22 with Palm OS 4.1. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 16/10/2004 @ 20:57 par aldweb
visiteur |
Hello Ken,
Indeed, this is a VERY weird bug!!! Just amazing in a way!
iBClock works very smoothly on my Palm Tungsten C (my main device), but I confirm that I also got the fatal error on my Palm Vx (in OS 4.1) and my wife's Sony Clié N770C (also in OS 4.1). And iBClock worked fine, as far as I remember, in Pose OS 4.1.
iBClock was running very well on all these devices when compiled with iziBasic v1.0 (I tested hundreds of things before releasing version 1.0 to assess maximum compatibility).
I guess that the problem comes from the internal COS and SIN routines, which have been improved like the whole math lib, between v1 and v2.
And, THANK YOU VERY MUCH for isolating the one line the problem comes from. This is very helpful for me, I know right away on what I should focus my analysis.
Well, version 3.0 was on its tracks to be released. I will look for this very first bug reported in v2.0 (bad luck!) before releasing v3 then. And, of course, as soon as I get a clue of the problem, I will let you know!
Cheers,
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 17/10/2004 @ 03:55 par Ken
visiteur |
Hmmmm.... Don't take this the wrong way, but I'm glad it happened to you too! At least now I know I'm not crazy!
As for isolating the line, you're welcome! I've been working with computers for almost 30 years (!) and I always hate it when somebody tells me something like "My computer doesn't work! I didn't do anything! It's just acting weird! Fix it!" <sigh>
I'll be interested to find out what the bug is...let me know if I can be of any assistance in testing or such.
Ken
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 17/10/2004 @ 22:23 par aldweb
visiteur |
Ken, don't worry, I don't take it the wrong way. I am myself a historical bug finder for HSPascal and PP, and I know how you can feel when you find something that should only work... when it doesn't!
I agree 100% with your "fix it!" comment!
I am still searching for this strange bug... Why in Palm OS < 5? Why not in POSE? This thing is really very very weird!!!
Cheers,
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 21/10/2004 @ 22:58 par aldweb
visiteur |
I am happy to announce you that this bug has been found and corrected in version 3.0 of iziBasic which I plan to release tomorrow night if everything goes fine until then. Ken confirmed that the version of iBClock compiled with my latest v3.0beta of iziBasic did not crash on his device anymore.
I am currently crash testing iziBasic in all ways I can think of on the Palm OS 6 Simulator. Compatibility seems excellent so far
Cheers,
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 22/10/2004 @ 23:40 par C.K.
visiteur |
Wonderful!
I'm looking forward to giving it a spin! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6 -------- le 22/10/2004 @ 23:54 par aldweb
visiteur |
Hello C.K.
At the time you were writing this message, iziBasic v3.0 was released. All registered users should have received or will be soon receiving an e-mail with the update
Cheers,
@+ aldweb |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|