View previous topic :: View next topic |
Author |
Message |
supramaniam
Joined: 30 Aug 2005 Posts: 11
|
Posted: Wed Sep 14, 2005 3:33 am Post subject: Run time error |
|
|
I have executed my program filter1.exe and received the following error message:
Run time error
Error : Zero raised to negative or zero power
00413250 SFREQ [+019d]
0040eec0 COS2 [+0105]
0040f3f0 FIR1D [+0ab6]
00410910 FIR [+012b]
00401000 main [+4652]
Kindly note that SFREQ, COS2, FIR1D, FIR refers to the subroutines needed for my main program
Please advise what is cause for such problem and how can it be resolved
Thanks
Supramaniam |
|
Back to top |
|
|
JvO
Joined: 18 Aug 2005 Posts: 15
|
Posted: Wed Sep 14, 2005 10:19 am Post subject: Run time error |
|
|
I don't have enough information to say for sure, but
I guess that the mentioned error occurred in subroutine SFREQ .
A ** B is not defined when A == 0 and B <= 0 !! Like division by ZERO.
Try compiling the program with /CHeckmate and run it with the debugger.
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Wed Sep 14, 2005 10:19 am Post subject: Run time error |
|
|
The error will be as stated.
Step through the code using the debugger to find the point at which it fails and then examine the values of the associated variables. |
|
Back to top |
|
|
|