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

Replies: 8
Views: 533

PostForum: 64-bit   Posted: Wed Nov 29, 2017 5:27 pm   Subject:
Wanted to add that I also used GlobalMemoryStatus@ to check max memory that the process can commit. I compared what happens when it is Qt->Qt dll->fortran dll, and Fortran->Qt dll->Fortran ...
  Topic: _SetMaximumIOBufferSize error
StamK

Replies: 8
Views: 533

PostForum: 64-bit   Posted: Wed Nov 29, 2017 4:26 pm   Subject:
Thanks for this. I tried increasing it to a very large size but I am still getting the same error.

It appears consistently (i.e. I can reproduce it in specific instances), but it happens on various ...
  Topic: Bug with GET_STORAGE
StamK

Replies: 3
Views: 132

PostForum: 64-bit   Posted: Tue Nov 21, 2017 2:40 pm   Subject:
I conveniently forgot to mention that the code works fine if run as a standalone program, it is the combination with the Qt 5.6.1 MSVC 2015 that causes this issue (and only in the 32bit world).

I ...
  Topic: Bug with GET_STORAGE
StamK

Replies: 3
Views: 132

PostForum: 64-bit   Posted: Tue Nov 21, 2017 12:01 pm   Subject: Bug with GET_STORAGE
I am posting this in the 64bit forum although the 64bit version of GET_STORAGE works well but NOT the 32bit. The returned address is always -1 with a particular combination of calls (only in 32bit, 64 ...
  Topic: Mask_underflow
StamK

Replies: 1
Views: 99

PostForum: 64-bit   Posted: Wed Nov 08, 2017 1:20 pm   Subject: Mask_underflow
Has this been implemented in the 64bit version? Our old code gives an error on this, and checking inside salflibc64.dll I cannot find it.
Thanks
  Topic: _SetMaximumIOBufferSize error
StamK

Replies: 8
Views: 533

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: 8
Views: 533

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: 8
Views: 533

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: 1519

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: 1519

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: 954

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: 954

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: 954

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: 954

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: 954

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 ...
 
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