replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Fancy_button_procedure@16 error
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 

Fancy_button_procedure@16 error

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



Joined: 15 Mar 2007
Posts: 252
Location: Matlock, Derbyshire, UK

PostPosted: Fri May 31, 2013 5:40 pm    Post subject: Fancy_button_procedure@16 error Reply with quote

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


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

PostPosted: Fri May 31, 2013 8:01 pm    Post subject: Reply with quote

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



Joined: 15 Mar 2007
Posts: 252
Location: Matlock, Derbyshire, UK

PostPosted: Fri May 31, 2013 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Sun Jun 02, 2013 5:17 am    Post subject: Reply with quote

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