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 

Inconsistency readfa@

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 69

PostPosted: Wed Mar 22, 2017 5:13 pm    Post subject: Inconsistency readfa@ Reply with quote

The programme following reads a file using subroutine readfa@ and produces different results for the 32 and 64 bit executable compiled from it.

Programme Code
Code:

      character*1024 data
      character*512 filename
      integer (kind=2) handle,error_code
      integer (kind=3) nbytes_read
     
      filename='MOD1.BNA'
      call openr@(filename,handle,error_code)
      call readfa@(data,handle,nbytes_read,error_code)
      write(*,*) 'data=',data(1:nbytes_read)
      call readfa@(data,handle,nbytes_read,error_code)
      write(*,*) 'data=',data(1:nbytes_read)
     
      end


File Mod1.BNA consists of the two lines following:
#003
#001

The 32 bit executable compiled from this code produces the result
data=#003
data=#001
as I expect. The 64 bit executable compiled from this code, however, produces the result
data=#003
data=001
omitting the character '#'.

Regards,
Dietmar
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 13, 2017 7:11 am    Post subject: Reply with quote

Sorry. Somehow I missed this post. I have made note that it needs looking at.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 13, 2017 8:37 am    Post subject: Reply with quote

This has now been fixed. I hope to be able to upload a new set of DLLs later today.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 13, 2017 12:24 pm    Post subject: Reply with quote

A new set of DLLs is available here...

https://www.dropbox.com/s/xhk4ofgp5g5xcpn/newDLLs6.zip?dl=0
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 69

PostPosted: Tue Apr 18, 2017 12:23 pm    Post subject: Reply with quote

Paul,

I downloaded the new dlls to my ftn95 installation, however, sdbg64 does not work any more with the new dlls (first steping via F8 causes sdbg64 to "hang").

Moreover, I did not find symbol SECONDS_SINCE_1980 in the new version of salflibc64.dll.

I switched to the previous version of the dlls again and found that sdbg64 was running ok again.


Regards,
Dietmar
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Apr 18, 2017 2:13 pm    Post subject: Reply with quote

Dietmar

It is quite possible that the new DLLs are out of step with either FTN95 or SDBG64. So it is always a good idea to take a backup before using the intermediate DLL updates.

SECONDS_SINCE_1980@ is exported in the latest DLL on my machine but I don't recall if this has changed recently.

The problem with READFA@ was that the order of the "carriage return" and "line feed" symbols is reversed when changing from 32 bits to 64 bits. So on the basis of this information you may be able to find a temporary work-around.
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 -> 64-bit 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