Silverfrost Forums

Welcome to our forums

What is: StackOverflowException was unhandled

11 Dec 2012 9:01 #11279

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

11 Dec 2012 2:16 #11281

Try using the /CHECKMATE command line option for FTN95 and use the debugger to locate the problem.

11 Dec 2012 3:40 #11282

Quoted from PaulLaidler 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.

12 Dec 2012 4:07 #11284

Quoted from PaulLaidler 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.

12 Dec 2012 8:28 #11286

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

12 Dec 2012 9:27 #11290

Quoted from PaulLaidler 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.

12 Dec 2012 2:09 #11292

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.

Please login to reply.