Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

USEROPEN specifier

Chris_G_2
Beginner
710 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 II
710 Views

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

0 Kudos
Chris_G_2
Beginner
710 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.

0 Kudos
andrew_4619
Honored Contributor II
710 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....

0 Kudos
Chris_G_2
Beginner
710 Views

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

0 Kudos
Reply