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 

Exception with SDBG

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
wosl



Joined: 31 Jan 2008
Posts: 30

PostPosted: Mon Feb 23, 2009 12:09 pm    Post subject: Exception with SDBG Reply with quote

Hi!

I'm refering to my post on "Exception with accelerator key %ac". The error has nothing to do with the %ac feature, therefore I created an other post now.

The debugger is crashing with an exception in certain hardware/Win OS environment. Here is a sample code:
Code:

      winapp 400000,50000
      program test
c
c  Test for "Unexpected Exception in Kernel32"
c
c  Steps:
c  1. Compile & link (FTN95 v5.21) with
c     ftn95 test.for /full_undef /full_debug /link
c  2. Run debugger
c     sdbg test
c  3. Press any key
c
c     Windows XP Prof SP3 (laptop):
c     -> Exception occurs right after the keystroke
c     Windows 2000 SP4    (desktop):
c     -> No Problem
c
      implicit none
      include <windows.ins>
      integer  s_width,s_depth,g_width,g_depth
      integer  i
      integer  ibgcol
      integer  hwin,ictrl,ihnd_grap
c  Main program
      ibgcol=RGB@(138,185,215)
      s_width=clearwin_info@ ('SCREEN_WIDTH')
      s_depth=clearwin_info@ ('SCREEN_DEPTH')
      g_width=s_width*0.85
      g_depth=s_depth*0.85
c
      i=winio@ ('%ww[no_border]%ca[Test Drawing]&')
      i=winio@ ('%bg&',ibgcol)
      i=winio@ ('%mn[&Exit]&','EXIT')
      i=winio@ ('%pv%`gr[rgb_colours,full_mouse_input]&',
     *          g_width,g_depth, ihnd_grap)
      i=winio@ ('%hw&',hwin)
      i=winio@ ('%lw',ictrl)
c
      stop
      end


I'm using sdbg with FTN95 version 5.21.

Laptop & Windows XP Prof: exception (pressing a key)
Desktop & Windows 2000: no problem

Could anybody test the code on different hardware and/or WIndows OS? Did I something wrong?

WoSl
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 490
Location: Sunderland

PostPosted: Mon Feb 23, 2009 1:16 pm    Post subject: Reply with quote

Just tried it on Vista - no problems. Try checking for old versions of salflibc.dll

Regards

ian
Back to top
View user's profile Send private message Send e-mail
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Feb 23, 2009 1:45 pm    Post subject: Reply with quote

Tried it on XP with 4.90 - no problems. I agree with Ian: old salflibc.dll a probable issue.

Eddie
Back to top
View user's profile Send private message
wosl



Joined: 31 Jan 2008
Posts: 30

PostPosted: Mon Feb 23, 2009 10:33 pm    Post subject: Reply with quote

Thank you for your answers!

This is what I did before I posted my file:

I cleaned my system regarding old salflibc.dll's. I copied my source code directly to the FTN95 directory, compiled, linked and ran it with the debugger. Therefore, no usage of old .dll library is possible, right? What else can I do?

Very strange

Regards
WoSl
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Feb 23, 2009 11:42 pm    Post subject: Reply with quote

WoSl,

Laptops are sometimes a bit odd. Do you have other machines you can try it on? You've really got two choices: try a different machine with XP (if it runs, then somethings wrong with the laptop), or try an earlier version of FTN95 on your laptop (if that runs then there's something wrong with 5.21).

Maybe your laptop has a special keyboard driver - does it have any fancy keys that you don't find on a standard keyboard?

Eddie
Back to top
View user's profile Send private message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: Düsseldorf, Germany

PostPosted: Wed Feb 25, 2009 6:44 pm    Post subject: Reply with quote

The problem of old SALFLIBC.DLL may be solved in this way:

Code:
      i = SCC_LIB_VERSION@()
      if (i .lt. 12047) then
        j = winio@('%ca[Warning]%sy[3d_thin]%fn[MS SANS SERIF]%ts'
     *      //'%2si!File SALFLIBC.DLL not actual!%2nl%cn%7`bt[OK]',.9D0)
        goto ...
      end if


...where (say) 12047 is the number of the version you used for the development of your software.

Regards,
Wilfried
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 -> ClearWin+ 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