Quantcast
Channel: Microsoft Windows* 8.x
Viewing all articles
Browse latest Browse all 389

Windows errors for valid Fortan io

$
0
0

I have converted an application with an awful lot of  user interface from  QuickWin to Windows and am currently at the testing/fixing phase. As such I have a custom error trapping routine inserted all over the place looking at the windows error status from the sdk getlasterror() and logging such events along with a stack trace, error code etc.

I seem to get an irritating number of 'false errors' from valid Fortran i/o, for example a Fortran INQUIRE statement on a file  with EXIST or IOSTAT generates a windows error code if the file does not exist. I expect the Fortran runtime provokes windows by trying to open the file and then returns the Fortran status based on that status. It would seem to be a bit more friendly if the Fortran runtime reset and spurious errors that it generated.

Are there any options that would work around this? I suppose I could start replacing Fortran with Sdk file utilities.but that seems like wasted effort.

 


Viewing all articles
Browse latest Browse all 389


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>