View previous topic :: View next topic |
Author |
Message |
CompuPayMike
Joined: 10 Mar 2009 Posts: 23 Location: USA
|
Posted: Tue Apr 14, 2009 4:32 pm Post subject: Error handling |
|
|
We have an existing application in FTN77 that throws errors when it calls a subroutine that takes the square root of -1. When this is encountered it goes into the debugger and shows the call stack going back to the highest level subroutine. We run the program by using RUN77 and it is not complied in debug mode.
I am trying to do something similiar in FTN95, my only problem is that without compiling in debug mode I do not get a call stack of subroutines called.
How can I do the same thing in FTN95?
Thanks.
Michael |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8254 Location: Salford, UK
|
Posted: Tue Apr 14, 2009 7:09 pm Post subject: |
|
|
Just to clarify, are you asking for a trace back on runtime failure without using /debug as a compiler option?
If you do not want to slow things down by using /debug everywhere you could consider using it in parts of the code. |
|
Back to top |
|
 |
CompuPayMike
Joined: 10 Mar 2009 Posts: 23 Location: USA
|
Posted: Tue Apr 14, 2009 7:20 pm Post subject: error handling |
|
|
Yes I would like to have trace back without compiling in debug. |
|
Back to top |
|
 |
silverfrost Site Admin

Joined: 29 Nov 2006 Posts: 193 Location: Manchester
|
Posted: Wed Apr 15, 2009 5:39 pm Post subject: |
|
|
Do you not get the exception box with the stack trace? |
|
Back to top |
|
 |
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Wed Apr 15, 2009 6:02 pm Post subject: |
|
|
Check to see that you are not linking with the "notrace" option! |
|
Back to top |
|
 |
CompuPayMike
Joined: 10 Mar 2009 Posts: 23 Location: USA
|
Posted: Thu Apr 16, 2009 1:19 pm Post subject: Error handling |
|
|
I have to compile in debug or checkmate to get a trace that shows line numbers and names of routines. If I compile without that I just get the name of the lowest level routine where the error occured and some hex code values. |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2621 Location: Sydney
|
Posted: Sun Apr 19, 2009 8:37 am Post subject: |
|
|
Michael,
For the reason you have found, of getting a useful error message, I mostly compile with /debug.
There is little overhead in run time performance with /debug, although /check has a considerable, but in most cases acceptable overhead. The first run is usually with /check.
I only use /opt for mature code where performance is important.
John |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8254 Location: Salford, UK
|
Posted: Mon Apr 20, 2009 10:41 am Post subject: |
|
|
You must either use /DEBUG to get the line numbers or you can interprete the hex values in square brackets as assembly code address offsets by compiling your code using /EXPLIST. |
|
Back to top |
|
 |
|