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 

_SetMaximumIOBufferSize error

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



Joined: 12 Oct 2016
Posts: 51

PostPosted: Wed Aug 16, 2017 12:09 pm    Post subject: _SetMaximumIOBufferSize error Reply with quote

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 error too generic, or is there something I can start looking for?
Back to top
View user's profile Send private message
StamK



Joined: 12 Oct 2016
Posts: 51

PostPosted: Wed Aug 16, 2017 3:38 pm    Post subject: Reply with quote

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 size somewhere?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 16, 2017 4:12 pm    Post subject: Reply with quote

Can you provide sample code that demonstrates this failure?
Back to top
View user's profile Send private message
StamK



Joined: 12 Oct 2016
Posts: 51

PostPosted: Wed Aug 16, 2017 4:48 pm    Post subject: Reply with quote

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 away?

Thanks
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 16, 2017 5:11 pm    Post subject: Reply with quote

The default buffer size is 32767 and this can be increased by a call to SET_MAXIMUM_IO_BUFFER_SIZE@ at the start of the program.


Code:
C_EXTERNAL SET_MAXIMUM_IO_BUFFER_SIZE@ '__SetMaximumIOBufferSize' (VAL)


Code:
extern void SetMaximumIOBufferSize(int) "__SetMaximumIOBufferSize";
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