replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Error handling
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error handling

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
CompuPayMike



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Tue Apr 14, 2009 4:32 pm    Post subject: Error handling Reply with quote

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
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8254
Location: Salford, UK

PostPosted: Tue Apr 14, 2009 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
CompuPayMike



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Tue Apr 14, 2009 7:20 pm    Post subject: error handling Reply with quote

Yes I would like to have trace back without compiling in debug.
Back to top
View user's profile Send private message Send e-mail
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 193
Location: Manchester

PostPosted: Wed Apr 15, 2009 5:39 pm    Post subject: Reply with quote

Do you not get the exception box with the stack trace?
Back to top
View user's profile Send private message Visit poster's website
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Wed Apr 15, 2009 6:02 pm    Post subject: Reply with quote

Check to see that you are not linking with the "notrace" option!
Back to top
View user's profile Send private message Visit poster's website
CompuPayMike



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Thu Apr 16, 2009 1:19 pm    Post subject: Error handling Reply with quote

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
View user's profile Send private message Send e-mail
JohnCampbell



Joined: 16 Feb 2006
Posts: 2621
Location: Sydney

PostPosted: Sun Apr 19, 2009 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8254
Location: Salford, UK

PostPosted: Mon Apr 20, 2009 10:41 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group