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 51 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: _SetMaximumIOBufferSize error
StamK

Replies: 4
Views: 120

PostForum: 64-bit   Posted: Wed Aug 16, 2017 4:48 pm   Subject:
I would have to share the whole code - perhaps Robert could send me a test version of CLEARWIN64.dll with a very large buffer size (related to SetMaximumIOBufferSize) just to see if the problem goes a ...
  Topic: _SetMaximumIOBufferSize error
StamK

Replies: 4
Views: 120

PostForum: 64-bit   Posted: Wed Aug 16, 2017 3:38 pm   Subject:
If I run a pure Fortran application, this doesn't happen - but if I start a C++ Qt executable which calls this Fortran application as a DLL, then it happens.

Perhaps a case of increasing a buffer s ...
  Topic: _SetMaximumIOBufferSize error
StamK

Replies: 4
Views: 120

PostForum: 64-bit   Posted: Wed Aug 16, 2017 12:09 pm   Subject: _SetMaximumIOBufferSize error
I am currently getting the following error:

Within file CLEARWIN64.DLL In _SetMaximumIOBufferSize

I haven't tested this exact version in 32bit (as quite a few changes to be done).

Is this e ...
  Topic: Cannot use scroll bar in large files in debugger
StamK

Replies: 13
Views: 851

PostForum: 64-bit   Posted: Sun Jul 16, 2017 9:35 pm   Subject:
As kindly suggested by Robert (Silverfrost), you can modify the file %appdata%\sdbg64.ini You could just delete the file or edit the SourceWindow-H setting to be something sensible (like 40). This w ...
  Topic: Cannot use scroll bar in large files in debugger
StamK

Replies: 13
Views: 851

PostForum: 64-bit   Posted: Fri Jun 30, 2017 3:43 pm   Subject:
Has anyone else noticed this as well? It appears to happen only with the 64bit debugger.

Because of this, there are some functions where I cannot put any breakpoint, so I believe this is quite a se ...
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Fri Jun 30, 2017 3:43 pm   Subject:
If the Fortran subroutine/function is inside a module, then it will be necessary to use the LoadLibraryA method as Silverfrost exports it as MODULENAME!FORTRAN_SUBROUTINE and cannot be found via exte ...
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Wed Jun 21, 2017 4:59 pm   Subject:
I had tried that lib.exe command and it didn't work at first, but I found out that Qt was failing for another reason.

I can confirm that Qt can access the DLL with the LIB file created that way.
...
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Tue Jun 20, 2017 1:13 pm   Subject:
Hi Paul, thanks for the useful input - but this is for Fortran calling a C++ DLL, while I have described a C++ executable loading a Fortran DLL.
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Tue Jun 20, 2017 11:35 am   Subject:
If passing a string from C++ to Fortran, be aware that you need to add in C++ the string size (strlen) as an extra int parameter at the end (as per Silverfrost's documentation).

In VC++ this works ...
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Tue Jun 20, 2017 11:31 am   Subject:
If using Qt with MSVC, then it is possible to use LoadLibraryA as above, or use Qt's QLibrary.


#include <QLibrary>

void QW_GET_VALC(int* IWIN, int* IFLD, char* CH)
{
t ...
  Topic: How to load a Fortran function from C++ (instructions)
StamK

Replies: 8
Views: 505

PostForum: 64-bit   Posted: Tue Jun 20, 2017 11:28 am   Subject: How to load a Fortran function from C++ (instructions)
In the 32bit world it was possible for the linker to create a dll AND a lib file (via the archive command).
This was particular useful as it allowed a Qt or VC++ program to call a Fortran function d ...
  Topic: attempt_rlo_load and record_profile_address spurious warning
StamK

Replies: 4
Views: 315

PostForum: 64-bit   Posted: Mon Jun 19, 2017 4:08 pm   Subject:
I can confirm that with the n.12 DLL release the warnings disappear (from my first post).
  Topic: Bug with <iostream.h> in 64bit
StamK

Replies: 1
Views: 292

PostForum: 64-bit   Posted: Mon Jun 19, 2017 4:04 pm   Subject: Bug with <iostream.h> in 64bit
The following code compiles fine under 32 bit SCC but under 64bit it fails


[Silverfrost SCC/WIN32 Ver 3.88 Copyright (c) Silverfrost Ltd 2017]
3/0257 inline int ios::s ...
  Topic: attempt_rlo_load and record_profile_address spurious warning
StamK

Replies: 4
Views: 315

PostForum: 64-bit   Posted: Mon Jun 19, 2017 2:37 pm   Subject:
Forget about my latest post, it was a path issue...
Sorry!
  Topic: attempt_rlo_load and record_profile_address spurious warning
StamK

Replies: 4
Views: 315

PostForum: 64-bit   Posted: Mon Jun 19, 2017 2:02 pm   Subject:
Thanks Paul.
Normally I am using Qt to call the Fortran DLLs so no issue there, however when using a Silverfrost executable (either via ftn95 or scc) that calls the DLL then it will stop with an erro ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group