| View previous topic :: View next topic |
| Author |
Message |
pcman Member
Joined: 19 Sep 2003 Posts: 18
|
Posted: 19/09/03 02:59 Post subject: TextAnimator, Delphi7, Run time error: 'Range check error' |
|
|
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 |
|
| Back to top |
|
 |
Johnny_Bit Junior Member
Joined: 15 Jun 2003 Posts: 95
|
Posted: 19/09/03 06:06 Post subject: |
|
|
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) |
|
| Back to top |
|
 |
pcman Member
Joined: 19 Sep 2003 Posts: 18
|
Posted: 19/09/03 17:51 Post subject: It Worked! Thanks! |
|
|
I disabled range checking then i got OverFlow error. So i disabled
OverFlow checking and it worked!
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 |
|
| Back to top |
|
 |
|