Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

USEROPEN specifier

Chris_G_2
Beginner
105 Views

I am experimenting with the USEROPEN specifier in OPEN statements to bypass the Fortran RTL. I started with the example in the Intel documentation in the section 'OPEN: USEROPEN Specifier'. I have been trying the example for Windows systems, but it gives a Program Exception - access violation on line 108.

Has anyone else had this problem or could offer a fix?

I enclose the relevant folder.

0 Kudos
4 Replies
andrew_4619
Honored Contributor I
105 Views

Did you try null terminating the file name string that is passed?

Chris_G_2
Beginner
105 Views

Thanks, Andrew.

I have found a second, different example in the documentation and this works fine (without the need for null termination of the string, so I am using that at the moment.

andrew_4619
Honored Contributor I
105 Views

Glad you fixed it. If there is a duff example in the latest documents file a ticket on it then at least it will get fixed....

Chris_G_2
Beginner
105 Views

Actually the documentation is OK - it's  just my stupidity.

Reply