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
161 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
161 Views

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

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

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

Reply