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

Problem with focus in QuickWin child windows

Luka_Djigas
Beginner
633 Views
Hello everyone,
I was wondering whether there is anyone here who might help me out with a bitof a problem I've been having with QuickWin windows. I'm just starting with QWinso this may be overly simple to most of you, surely.The following when started does gets stuck on Windows XP.
[bash]use ifqwin

integer(2) status2
integer(4) status4, result
type (xycoord) xy

open(unit=11, file='user', title='Prvi prozor')
open(unit=12, file='user', title='Drugi prozor')
open(unit=13, file='user', title='Treci prozor')

status4 = focusqq(11)   !Fokus na prvi prozor
write(11,*)'Bla bla bla u prvi prozor'
do i=1,100
    write(11,'(f10.3)')(3.*i)
end do

status4 = focusqq(12)   !Fokus na drugi prozor
result = SETCOLORRGB(Z'FF0000') ! blue
status2=lineto(int2(x+20),int2(60))
write(12,*)'Pisem u drugi prozor'

status4 = focusqq(13)   !Fokus na treci prozor
write(13,*)'Bla bla bla u treci prozor'
do i=1,100
    write(13,'(f10.3)')(5.*i)
end do

status4 = focusqq(11)   !Fokus na prvi prozor
write(11,*)'Press any key'
read(11,*)

end[/bash]
If I comment this part
[bash]	!status4 = focusqq(13)   !Fokus na treci prozor
	!write(13,*)'Bla bla bla u treci prozor'
	!do i=1,100
	!    write(13,'(f10.3)')(5.*i)
	!end do[/bash]
everything works fine. Why? Is it impossible to have more than two windows at the same time?
0 Kudos
3 Replies
Wendy_Doerner__Intel
Valued Contributor I
633 Views
Luka,

Can you post which version of the compiler you are using? There were some problems with hangs with11.1 and 12.0 compilers which should be resolved in the 12.1 compiler and were never seen on Windows XP*. More details here.

I am trying your test case on Win XP to see if I can see the hang. On Windows 7 it creates three windows and asks for input from the keyboard and does not seem to accept any. Is this what you are seeing? If not can you detail what you are seeing?

Will update this thread with my results.

------

Wendy

Attaching or including files in a post



0 Kudos
Luka_Djigas
Beginner
633 Views
Wendy, thanks for answering.


Visual studio / Help / About ... Product details says this:
Intel Visual Fortran Composer XE 2011 Integration for Microsoft Visual Studio* 2008, 12.0.3470.2008, Copyright (C) 2002-2010 Intel Corporation


so I gather it is 12.0. My OS is Win XP SP3.
However, it looks like it may be the problem on my side after all. When I read your reply, I went in search of whether maybe someone has newer version of the compiler. One of my coleagues was interested in what was going on, and in the meantime, he ran the code on his machine (compiler 11.something on Win XP SP2) and it ran.
Then I reinstalled everything on my machine, (therefore my somewhat late reply) and now it works. I don't know what interfered with it before.
The behaviour I was seeing before was that it opened the first window (unit=11), wrote to it, opened the second window (12), drew line and wrote something and froze. Couldn't click on anything, nor do anything but wait for it to Close/End program.
You say on Win7 it doesn't accept any input? It should end with waiting for the return key, then terminate.
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
633 Views
I am glad the reinstall solved the problem. I saw the same windows, but interaction did not freeze at all.

------

Wendy

Attaching or including files in a post

0 Kudos
Reply