aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #968

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 968  Very weird bug in SIN() & COS()

15/10/2004 @ 04:23
by Ken

Anonymous



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.
  Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
16/10/2004 @ 20:57
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
17/10/2004 @ 03:55
by Ken

Anonymous

visitor
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
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
17/10/2004 @ 22:23
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4
--------
21/10/2004 @ 22:58
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5
--------
22/10/2004 @ 23:40
by C.K.

Anonymous

visitor
Wonderful!

I'm looking forward to giving it a spin!
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6
--------
22/10/2004 @ 23:54
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^