I have a large program running with ClearWin+ that seems to run ok until I quit the program, and then I receive the following error message:
The instruction at address 1008d26b attempted to write to location f0f0f0f0
1008d253 increment_var(void)#70 [+0018] 1004ef76 call_function(<ptr>(func()ÄreturningÄint),<ptr>char,<ptr>void,enumÄlogical,enum [+0193] 100386f6 __yield_program_control [+0013] 1005de20 __temporary_yield [+0016] 100cc7d3 __winio [+203b] GUI!WINDOW_END - in file gui.f95 at line 690 [+002c] CPT_INTERFACE!TITLE_PAGE - in file cpt_interface.f95 at line 166 [+051d] MAIN - in file cpt.f95 at line 29 [+0035]
I am compiling using /FULL_DEBUG /BOUNDS_CHECK /DCLVAR and /CHECK_WINIO, but get a similar error message without those options. The last line of my code that is mentioned in the above (i.e., in file gui.f95 at line 690) is the following:
iw = winio$('')
which I use simply to end a sequence of winio@ calls. My code is about 100,000 lines, but I get this error even if I just start up the program, which generates a window with a few menu items, and then immediately exit.
I have little clue how to proceed further with identifying this problem. Any advice on how to try to locate the problem would be greatly appreciated.