Page 1 of 1

TextAnimator, Delphi7, Run time error: 'Range check error'

PostPosted: September 19th, 2003, 2:59 am
by pcman
Hi,

I am getting a run time exception with the TextAnimator component:
ERangeError ( 'Range check error').

It occurs occasionally and sometimes continuously.

There isn't anything unusual i am doing with the component. It just displays the text 'Welcome' with animation.

My environment is WinXP Pro SP1, Delphi 7 Pro.

The debugger stops on line 158 of TextAnim unit which is:
'Perform(WM_ERASEBKGND, DC, 0)'

Any Help?
Thanks.

pcman

PostPosted: September 19th, 2003, 6:06 am
by Johnny_Bit
Hmm wierd....

This is what you should do:

1. Disable Range Checking
2. Build Your project
3. Run It
4. If project raises any exception then thi is real problem, not this range check error

If project raised any exception then it means that something is real bad... Put here code where it raises (2 lines befor exception mark, line that is marked as exception, and 2 next lines)

It Worked! Thanks!

PostPosted: September 19th, 2003, 5:51 pm
by pcman
I disabled range checking then i got OverFlow error. So i disabled
OverFlow checking and it worked! :D

I disabled those checkings in TextAnim unit ({$R-} {$Q-}) but enabled
them in the project in IDE. Everything worked fine.

Would that enabled those checkings for the project and disable them only
in TextAnim unit?

Do you know any other text animation component?

Thanks!
P.S. Good Free GIF/HTML components:
http://www.pbear.com/ http://www.sulako.com/

pcman