View previous topic :: View next topic |
Author |
Message |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Tue Dec 11, 2012 10:01 am Post subject: What is: StackOverflowException was unhandled |
|
|
I got following error message during debugging my code:
StackOverflowException was unhandled
An unhandled exception of type 'System.StackOverflowException' occurred in ***.exe
TroubleShooting tips:
Make sure you do not have an infinite loop or infinite recursion.
Get general help for this exception.
In my code, it refers to:
IMPLICIT Real*8(A-H,O-Z)
What is wrong with this command?
I think I have to convert it to FTN95 equivalent.
Any help is highly appreciated
BR
Khoshravan |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Dec 11, 2012 3:16 pm Post subject: |
|
|
Try using the /CHECKMATE command line option for FTN95 and use the debugger to locate the problem. |
|
Back to top |
|
 |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Tue Dec 11, 2012 4:40 pm Post subject: Re: |
|
|
PaulLaidler wrote: | Try using the /CHECKMATE command line option for FTN95 and use the debugger to locate the problem. |
Thanks. Let me do and tell here what happened. |
|
Back to top |
|
 |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Wed Dec 12, 2012 5:07 am Post subject: Re: |
|
|
PaulLaidler wrote: | Try using the /CHECKMATE command line option for FTN95 and use the debugger to locate the problem. |
Where shall I put this option?
I RUN the program through build command and I don't know where should I put this option?
Sorry if it sounds to novice. I am not familiar with FTN95 environment. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Dec 12, 2012 9:28 am Post subject: |
|
|
If you are using Plato or Visual Studio then select "Checkmate Win32" on the toolbar.
If you are running from a command line then type...
FTN95 filename.for /checkmate /link |
|
Back to top |
|
 |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Wed Dec 12, 2012 10:27 am Post subject: Re: |
|
|
PaulLaidler wrote: | If you are using Plato or Visual Studio then select "Checkmate Win32" on the toolbar.
If you are running from a command line then type...
FTN95 filename.for /checkmate /link |
I am running SilverFRost FTN95 Express. I haven't downloaded/installed Plato, as I think above FORTRAN comes with VS and it is enough.
I couldn't find an icon or command inside toolbar for Checkmate Win 32. However I went to Property Pages and selected Debugging in left pane and changed the Debug Features, Debug Levels and Debug Misc there.
I suppose it will be enough to for debugging and I should find out the problem.
After debugging still it says the same message and doesn't give further info to trace out the error. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Dec 12, 2012 3:09 pm Post subject: |
|
|
You should be able to see combo boxes (drop-down lists) on the toolbar that have tooltips "Solution Configurations" one of the items should be Checkmate and "Solution Platforms" one of which should be Win32.
If you cannot see these then you should still be able to select "Checking code" and "Check for undefined variabless" from the project properties.
After that you need to step into the code using the debugger and then run to a point just before the error. Examine everything at this point from within the debugging process. |
|
Back to top |
|
 |
|