View previous topic :: View next topic |
Author |
Message |
silicondale
Joined: 15 Mar 2007 Posts: 252 Location: Matlock, Derbyshire, UK
|
Posted: Fri May 31, 2013 5:40 pm Post subject: Fancy_button_procedure@16 error |
|
|
Large and complex legacy program originally MSDOS now converted to FTN95/Clearwin+, compiled with full debug checks (/CHECKMATE etc), most errors - undefined variables, bad argument lists etc - seem to be picked up, and I get traceback to the offending line of code. However, sometimes, unpredictably, it just bombs out in code that other times works perfectly. No usable traceback, just
Access violation
The instruction at address 1007c9f3 attempted to read from location 07497000
1007c8c3 fancy_button_procedure@16 [+130]
- followed by a whole lot of gobbledygook traceback
It seems to happen usually when I've just clicked on a button, which perhaps makes sense. But I can find nothing wrong with the coding around the button - which is of course all new Clearwin+ coding.
Thoughts?
- Steve
 |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Fri May 31, 2013 8:01 pm Post subject: |
|
|
The immediate work-around is to remove the colour from the GO button.
Then it will no longer be a "fancy" button.
Looking at the ClearWin+ code, I can see how it can easily be made more robust. Also I am about to upload a new beta version of salflibc.dll for users to test and I can make the changes before doing this.
As for the actual problem, I would need your code for the window and for it to fail for me in the same way, before I could comment. However, you sometimes get this sort of problem when a window closes prematurely leaving dangling window handles (HWNDs) for windows that no longer exist. |
|
Back to top |
|
 |
silicondale
Joined: 15 Mar 2007 Posts: 252 Location: Matlock, Derbyshire, UK
|
Posted: Fri May 31, 2013 8:35 pm Post subject: |
|
|
Paul - That's extremely helpful. Certainly can remove the colour and see if it helps. The code is intricate and many tens of thousands of lines so impractical to send for your tests. However, premature window close and hanging handles may give me a clue as to what to try! Thanks a bunch.
New Fortran purchase now imminent - want to do it in this VAT quarter, i.e., before end-June.
all the best
Steve _________________ (Steve Henley) |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Sun Jun 02, 2013 5:17 am Post subject: |
|
|
Steve,
I compile most code using /debug. This typically gives a better traceback report, altough not always. It is worth trying if you have not already done so. I only use /opt for code that I am confident works or is a major contributor to run time.
John |
|
Back to top |
|
 |
|