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

forrtl: severe (38): error during write, unit 6, file CONOUT$

ronghewang
Beginner
4,073 Views
When I updated to "Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, V11.0.074", I always get "forrtl: severe (38): error during write, unit 6, file CONOUT..." when call STOP. How can I hide this error message?
0 Kudos
10 Replies
Steven_L_Intel1
Employee
4,073 Views

What project type is this? (Console, DLL, Windowing, etc.)?

Why did you pick that specific version? I suggest 11.1.038 or 11.0.075.
0 Kudos
ronghewang
Beginner
4,073 Views

What project type is this? (Console, DLL, Windowing, etc.)?

Why did you pick that specific version? I suggest 11.1.038 or 11.0.075.
Console.

I will try 11.0.075, and let you know the result.

Thanks Steve.


0 Kudos
ronghewang
Beginner
4,073 Views
It still happens in V11.1.038.

After I checked the configure settings, the problem is on:
AdditionalOptions="/fpscomp " FPS4IOFormat="true" FPS4LDIOSpacing="true" FPS4Logicals="true" FPS4General="true"

If I removed the compatibility settings, the RTE is gone, but the results are not expected. How can I do now?

If you want to test, I created a simple windows application, the winmain.f90 is like:

integer(4) function WinMain( hInstance, hPrevInstance, lpCmdLine, nCmdShow )
!MS$ ATTRIBUTES STDCALL, ALIAS : '_WinMain@16' :: WinMain
stop 0
WinMain = 0
return
end

When run to "stop 0", you will get the problem.

0 Kudos
Steven_L_Intel1
Employee
4,073 Views

I can reproduce this - it was the 0 argument to STOP that was the key. I didn't need any of the /fpscomp options to see this. Our issue ID is DPD200139029.

I suggest you remove the "0" from the STOP - and really, in a windowing application, STOP is rather "rude", though I suppose it works.
0 Kudos
ronghewang
Beginner
4,073 Views
You are right. If I removed the 0, it works for the normal condition. But it does not work for other abnormal conditions, such as stop the program by data validations.

After I did further test, if use (/fpscomp:general), then it works. If does not ues (/fpscomp:general), it does not work. If I still need "STOP errorcode", any further suggestions?

Thanks,



0 Kudos
ronghewang
Beginner
4,073 Views

I can reproduce this - it was the 0 argument to STOP that was the key. I didn't need any of the /fpscomp options to see this. Our issue ID is DPD200139029.

I suggest you remove the "0" from the STOP - and really, in a windowing application, STOP is rather "rude", though I suppose it works.

How can I get DPD200139029?
Thanks.
0 Kudos
Steven_L_Intel1
Employee
4,073 Views

It's not something you get - this is the tracking identification of the problem report I filed with development. When a fix is available, I'll post a reply here.
0 Kudos
Steven_L_Intel1
Employee
4,073 Views
This problem is corrected by 11.1 Update 3, available now.
0 Kudos
qing_chen63a
Beginner
4,073 Views
Hi Steve,

By using 11.1 update 3, I still got this problem. Attached please find two VS projects. The first (named pscreen) creates a DLL containing a write-to-screen function, and copies the DLL to the relevant directory in the second project (multiwin), where the function is called. If you build the DLL first, and then the simple
windows application program and run it, you will get the error as shown in the attached snapshot.

Any good suggestions?

Thank you in advance!

Qing
0 Kudos
Steven_L_Intel1
Employee
4,073 Views
I tried this with Update 3 and did not see an error.
0 Kudos
Reply