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

Quickwin program freezes on Windows 7 x64

Reinaldo_Garcia
Beginner
15,566 Views
When the program ends and displays the message "...Exit window?", if you click No, the window freezes.
The same program works just fine in Vista x64/XP.
I have Windows 7 Ultimate x64 and compiler 11.1.035.

Any suggestion?

R//G


[Edit by Steve Lionel (Intel) - for information on this problem and to obtain a fix, please readIntel Visual Fortran QuickWin applications freezing]
0 Kudos
128 Replies
Steven_L_Intel1
Employee
2,707 Views

Someone else reported the same problem, but I could not reproduce it. Are you using a non-English version of Windows by any chance?
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views

Someone else reported the same problem, but I could not reproduce it. Are you using a non-English version of Windows by any chance?

No Steve, it is an English Win 7 Ultimate x64.
Thanks,

R//G
0 Kudos
Steven_L_Intel1
Employee
2,707 Views

Would you please attach a ZIP of a project that shows this behavior?
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views

Would you please attach a ZIP of a project that shows this behavior?

Hi Steve:

This is a simple program I created that behaves as I mentioned (sorry that it lost the formatting when I pasted it). When the program ends and displays the dialog: ...Exit Window? and you click NO, then it freezes.

Thanks for your help.

Reinaldo

rogram test2
use dfwin
use dflib
implicit none
integer:: IOQQ1,RESULTQ

call Inic_Quickwin
IOQQ1 = 2001 ! QuickWin child window unit number
OPEN(UNIT=IOQQ1, FILE='USER', TITLE= 'RiverFLO-2D Text Output', IOFOCUS= .TRUE.) ! QUICKWIN WINDOW 1
RESULTQ = SETACTIVEQQ (IOQQ1)
write(IOQQ1, *) ' Hello Test'
End program

subroutine Inic_Quickwin

use dfwin
use dflib
implicit none
integer(4) iret,ideg,icount
integer(4) ibackcolor
integer(4) itextcolor,iTextLength
integer(2) iHeightFont, iWidthFont
integer(2) irowPos, icolPos
record /qwinfo/qw
logical(4) bret
integer(4) :: status
character(15) szMessage
type (windowconfig) wc
type (rccoord) rc
! set the child window properties to defaults and
! highest resolution graphics mode.
status = ABOUTBOXQQ('RiverFLO-2D Finite-Element River Dynamics Model'C)
wc%numxpixels = -1
wc%numypixels = -1
wc%numtextcols = -1
wc%numtextrows = -1
wc%numcolors = -1
wc%fontsize = -1 !QWIN$EXTENDFONT
wc%title = 'RiverFLO-2D'C
! wc%extendfontname = -1 !'Algerian'C
! set font height and size
iHeightFont = 66
iWidthFont = 30
wc%extendfontsize = -1 !makelong(iHeightFont,iWidthFont)
! set font attributes to bold, italic and decorative font
wc%extendfontattributes = ior(QWIN$EXTENDFONT_ITALIC, &
ior (QWIN$EXTENDFONT_FF_DECORATIVE,&
ior(QWIN$EXTENDFONT_VARIABLE_PITCH,&
QWIN$EXTENDFONT_BOLD )))
wc%title = ' RiverFLO-2D Text Output'C
bret = setwindowconfig(wc)
end subroutine Inic_Quickwin

0 Kudos
Steven_L_Intel1
Employee
2,707 Views
Would you please also attach the .vfproj file from the project? See my signature below for attachment instructions.
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views
Would you please also attach the .vfproj file from the project? See my signature below for attachment instructions.

Steve:

I attached the full project directory.

Thanks.

R
0 Kudos
Steven_L_Intel1
Employee
2,707 Views

I ran the EXE in your ZIP and it didn't freeze for me - Win7 x64. I also built it as a 64-bit app and that ran fine too. Let me suggest this - reboot into a "Safe Mode" configuration and run the program from there.
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views

I ran the EXE in your ZIP and it didn't freeze for me - Win7 x64. I also built it as a 64-bit app and that ran fine too. Let me suggest this - reboot into a "Safe Mode" configuration and run the program from there.

Steve:

I did several test and found that when I have MS-Outlook 2007 open the program freezes. It runs OK when you run it a few seconds after exiting Outlook. Could there be a conflict there?

R
0 Kudos
Steven_L_Intel1
Employee
2,707 Views

That's interesting - I will try that.

Do you have a process called ctfmon.exe running in the background? If so, stop it and see if the problem remains.
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views

That's interesting - I will try that.

Do you have a process called ctfmon.exe running in the background? If so, stop it and see if the problem remains.

Steve, I do not see a ctfmon.exe running in the task manager. It is weird and inconsistent behaviour so far. For example. I run the QWapplication and it freezes. I have a MS-Word, Outlook, Explorer and Visual Studio 2008 open. Then I close MS-Word, rerun the QW: freezes. Close VS: freezes. Close Outlook: does not freeze. Then I reload VS: does not freeze. Reload Outlook: does not freeze. Reload Word: freezes. This is very confusing to me.
0 Kudos
Steven_L_Intel1
Employee
2,707 Views
Can you try booting into Safe Mode and see if the problem is still there? When it freezes, does Task Manager show the QuickWin program taking CPU time or is it just stalled?
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views
Can you try booting into Safe Mode and see if the problem is still there? When it freezes, does Task Manager show the QuickWin program taking CPU time or is it just stalled?

In Safe Mode the problem persists. Here I see the ctfmon.exe *32 process, but even ending the it, QW freezes.

The program does not seem to be taking CPU time. The CPU usage remains in 0% or so after it freezes.

R
0 Kudos
Steven_L_Intel1
Employee
2,707 Views
Ok, thanks. I'll try some more ways to reproduce it. If we can't see the hang here, we can't figure out what is going wrong.
0 Kudos
Reinaldo_Garcia
Beginner
2,707 Views
Ok, thanks. I'll try some more ways to reproduce it. If we can't see the hang here, we can't figure out what is going wrong.

Steve: I understand. I will continue making tests to see if I could give you any clue.

Thanks,

R
0 Kudos
csmao
Beginner
2,707 Views
Ok, thanks. I'll try some more ways to reproduce it. If we can't see the hang here, we can't figure out what is going wrong.
Dear Steve:

I reported similar problem before and I was using a non-English version of Win7 64bit and 32bit. It seems that the 'hang/freeze' problem of Quickwin application is not related to the localized version of Win7. My problem was resolved if I put dialog calling routine in callbacks, but that is somewhat inconvenient for me. As you suggested, I boot into safe mode and find that my original code runs fine; the program does not freeze or hang. Apparently, some loaded drivers or windows processes are creating the conflict How do I isolate or see which process is causing the problem? Thanks.

Mao
0 Kudos
Steven_L_Intel1
Employee
2,707 Views

If booting into Safe Mode makes the hang go away, I would then use the msconfig utility to selectively disable startup items until I found one that made a difference.
0 Kudos
mrforti
Beginner
2,707 Views
Quoting - Reinaldo Garcia

Steve: I understand. I will continue making tests to see if I could give you any clue.

Thanks,

R

Hi all,

I have expierenced the same problem. I am using Quickwin elements in my code to produce graphical output. It is mainly formatted text using different styles and colours in one window. The main program has some hotkeys for a new run and to exit the program. When the program is excuted and the first run has passed the whole program hangs up on Windows 7. It could only be closed by using the taskmanager. Since my code has equivalent elements compared to Reinaldos test code, I suppose that the bug must be within the formatting elements. I will try to isolate the critical part of the code and could hopefully help to solve this problem.

Best Regards

Frank
0 Kudos
mrforti
Beginner
2,707 Views
Hi all,

I have investigated the problem on my program a little bit further. I was wrong with my first guess that the windowfreezing is related to the formatted graphical output. (I was able to compile and run Reinaldos test case)

Mao has already stated in his post that he could resolve the problem within its callback routine. Ihave madean equivalentobservation!I callfrom mymain programa subroutine that first starts with a dialog. In the dialog some initial data inputs are made and the status of some check boxes is controled by some callbackroutines.The subroutine could be started by ahotkeythrough the callcommand in the main program or via the menu with the appendmenuqq command. In case the subroutine is started with the call command the program freezes after the first run. If the subroutine is started by the menu, it works fine and could be started sveral times without freezing!!!

I am currently building a test case to reproduce the freezing and will post it here later on.

Regards

Frank
0 Kudos
mrforti
Beginner
2,707 Views
Hi all,

as mentioned earlier please find attached the test case. Attached Files are from a CVF project, because my Windows 7 test environment is not connected to the internet. This case works fine with CVF 6.6, but get freezed after the first cyclewith IFV 11.1 under Windows 7 Enterprise.

Does anybody has an idea why that thing freezes under W7 and works fine with XP? Is someone able to compile and run it without the freezingwindow?

Best regards

Frank
0 Kudos
Reinaldo_Garcia
Beginner
2,621 Views
Quoting - mrforti
Hi all,

as mentioned earlier please find attached the test case. Attached Files are from a CVF project, because my Windows 7 test environment is not connected to the internet. This case works fine with CVF 6.6, but get freezed after the first cyclewith IFV 11.1 under Windows 7 Enterprise.

Does anybody has an idea why that thing freezes under W7 and works fine with XP? Is someone able to compile and run it without the freezingwindow?

Best regards

Frank


In my case, I do not have dialogs or any complicated interface, so I would guess it is a Quickwin issue. Still I can't find a pattern that would indicate what is causing the application to freeze.

R
0 Kudos
Reply