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 

Search found 84 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Unable to set breakpoint when using checkmate
Ryan

Replies: 1
Views: 251

PostForum: 64-bit   Posted: Tue Jun 16, 2020 5:41 pm   Subject: Unable to set breakpoint when using checkmate
I've started to put the /checkmate option into my debug builds but I've had to back it out for the moment as when I specify it I lose the ability to breakpoint 'some' functions.

The only option is ...
  Topic: Difference in behaviour between 32/64 bit with fopen
Ryan

Replies: 12
Views: 1839

PostForum: 64-bit   Posted: Wed Apr 15, 2020 3:22 pm   Subject:
It's the same code in both situations and they both call fclose before attempting to open it again.

It could be me, but at the moment the only thing I can see different is the file attributes not b ...
  Topic: Difference in behaviour between 32/64 bit with fopen
Ryan

Replies: 12
Views: 1839

PostForum: 64-bit   Posted: Wed Apr 15, 2020 3:05 pm   Subject:
Later on in the code the file is closed, then opened again for write.

In 32 bit this works.

In 64 bit the file handle is not released and the open for write fails.

Using procmon.exe I can see ...
  Topic: Difference in behaviour between 32/64 bit with fopen
Ryan

Replies: 12
Views: 1839

PostForum: 64-bit   Posted: Wed Apr 15, 2020 2:00 pm   Subject:
What I meant by 'called from Fortran' is that the Fortran code calls a routine in C which then calls fopen.

This uses the definition from include\stdio.h
FILE *fopen(const char *filename, const c ...
  Topic: Difference in behaviour between 32/64 bit with fopen
Ryan

Replies: 12
Views: 1839

PostForum: 64-bit   Posted: Tue Apr 14, 2020 8:50 pm   Subject:
Thank you Paul.

Do you have an example or signature for fopens? I'm guessing it is a secure version so the parameters will probably have changed.
  Topic: Difference in behaviour between 32/64 bit with fopen
Ryan

Replies: 12
Views: 1839

PostForum: 64-bit   Posted: Tue Apr 14, 2020 7:41 pm   Subject: Difference in behaviour between 32/64 bit with fopen
The following C++ code (called from Fortran, all compiled with silverfrost) opens a file under 32 bit in read mode but fails silently to open the same file in 64 bit.

f1 = fopen( input_filename, ...
  Topic: Compiling modules via a relative path
Ryan

Replies: 4
Views: 2345

PostForum: General   Posted: Sun Oct 13, 2019 7:04 pm   Subject:
Correct. The module can be found in the local directory, but is somehow corrupted.

I've not got out a hex editor yet to see the difference, they both are 1kb so look similar (I've not got the byte ...
  Topic: Compiling modules via a relative path
Ryan

Replies: 4
Views: 2345

PostForum: General   Posted: Sun Oct 13, 2019 4:41 pm   Subject: Compiling modules via a relative path
When compiling a basic programme with a module from another directory, the module is included (and found) by the compiler but the functions within are not accessible and the compiler complains.

Whe ...
  Topic: Bitwise xor
Ryan

Replies: 6
Views: 2787

PostForum: General   Posted: Sun Sep 01, 2019 7:04 pm   Subject:
Thanks both, I did check the docs by searching for XOR couldn't find it.
  Topic: Bitwise xor
Ryan

Replies: 6
Views: 2787

PostForum: General   Posted: Sun Sep 01, 2019 11:18 am   Subject: Bitwise xor
I'm looking to xor two integers together in Fortran, is there a function in FTN95 to do this?
  Topic: Floor hangs with 64 bit values
Ryan

Replies: 4
Views: 2684

PostForum: General   Posted: Sun Sep 01, 2019 11:15 am   Subject:
Thank you Paul.
  Topic: Attempt to execute privileged instruction
Ryan

Replies: 8
Views: 3233

PostForum: 64-bit   Posted: Sun Jul 21, 2019 4:43 pm   Subject:
Thank you, only just seen this.
  Topic: Floor hangs with 64 bit values
Ryan

Replies: 4
Views: 2684

PostForum: General   Posted: Sun Jul 21, 2019 2:04 pm   Subject: Floor hangs with 64 bit values
I may be doing something daft, I'm trying to generate a 64 bit random number. The following hangs when floor is called.


REAL :: r, z
integer(kind=3):: j

CALL random_seed()
...
  Topic: Attempt to execute privileged instruction
Ryan

Replies: 8
Views: 3233

PostForum: 64-bit   Posted: Sat Jul 13, 2019 6:40 pm   Subject:
That's interesting Paul. Is there a compiler switch I missed?
  Topic: Attempt to execute privileged instruction
Ryan

Replies: 8
Views: 3233

PostForum: 64-bit   Posted: Sat Jul 13, 2019 1:55 pm   Subject:
mecej4, the file is provided by a software licencing company so no chance of decompiling it.

In discussion with them I think what is happening is that the Silverfrost set of compilers handle proces ...
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group