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

Converting CVF to IVF - qwgumenu.c error

blwiland
Beginner
569 Views
I am converting a CFV program to an IVF program. Everything seems to recompile and link ok but when I execute, I get a QuickWin error message that says "Internal Error - unexpected error in file qwgumenu.c*,line 871". I have no idea what this means or how to correct it. I assume it is something in one of the provided QuickWin subroutines. Any suggestions on how tofix it or what to look for?
0 Kudos
6 Replies
Steven_L_Intel1
Employee
569 Views
The message is not particularly meaningful other than to note that the QuickWin library encountered some internal inconsistency, such as a corruption of its data structures.

I think I've seen this before - try adding a call:

CALL SLEEPQQ(500) at the start of the program to give QuickWin a bit more time to initialize.
0 Kudos
blwiland
Beginner
569 Views

The CALL SLEEPQQ(500) did not work. I have isolated the problem to the statement "logstatus=deletemenuqq(1,3)" but I'm not sure what to do from there.
0 Kudos
Steven_L_Intel1
Employee
569 Views
Can you attach the complete program here? If not, please file an issue with Intel Premier Support and attach a ZIP of the application.
0 Kudos
blwiland
Beginner
569 Views
Can you attach the complete program here? If not, please file an issue with Intel Premier Support and attach a ZIP of the application.

In the program where the originalcodeoccurs, it is used to keep track of the last files that were opened.
However, I have created a simplified program that recreates the problem. It works in CVF 6.6 but not in IVF v.11.0. I believe it may have also worked in an earlier version of IVF (8.0) but I no longer have the earlier version installed to test. As I indicated, the problem code is caused by DELETEMENUQQ. Ihave attached the source code and executable for the CVF and IVF versions. The only difference in the code is that the CVFhas USEDFLIB and and IVF has USE IFQWIN. If you execute and click on "File", you will get a menu with several items numbered 1 through 5. If you then click on New Menu Item, these numbered items should change the next time you click on "File". In the CVF version, it works as expected. In the IVF version,the qwgumenu.cQuickWin error occurs.

I have filed an issue with Intel Premier. I had filed another similar issue with Intel Premier last June related to an APPENDMENUQQ problem I was having whileusingthe evaluation version ofIVF 10.0. I received the following response:

"Sometime after the 8.1.021 update, we introduced a change in behavior where APPENDMENUQQ does not activate the callback for a top-level menu when a user-defined callback is used. APPENDMENUQQ only activates the callback for a top-level menu for predefined routines. INSERTMENUQQ works as expected and might be usable as a work-around for you. The Fortran run-time library team has not weighed in on whether this change in behavior was intentional or not."

The INSERTMENUQQ proved to be an acceptable work around for me but this issue is still open at Intel Premier, and the current status is shown as "Reproduced (escalated)." Maybe this DELETEMENUQQ is related and there is also a workaround for it.


0 Kudos
Steven_L_Intel1
Employee
569 Views
Thanks for filing the issue (547621). I can reproduce the problem with the upcoming 11.1.
0 Kudos
blwiland
Beginner
569 Views
Thanks for filing the issue (547621). I can reproduce the problem with the upcoming 11.1.

FYI, this issue has now been fixed with the 11.1.038 update.
0 Kudos
Reply