Hello All

vouchcac wrote:
> 
>     /* Please try like this:
> 
>        1.       
>        - Execute wvtext.exe
>        - Press F10 -> New Window
>        - Press <ESC> -> Boooooom GPF (inkey(0))
>  
>        2.
>        - Execute wvtext.exe
>        - Press F10 -> New Window
>        - Click on Main Window
>        - Click on New Window
>        - Press <ESC> -> Normal Exit
>  
>        I am trying to find why to click on Main Window for 
>        closing the New Window. I have not been able to reach any 
>        logical reasoning. Help is requested.
> 
>        Play : Resize New Window - Browser expands by rows and columns.
>     */
> 

I found the reason.

do while .t.
   if Inkey() == K_ESC
      EXIT
   endif
enddo

Inkey() without parameters is the culprit.
Changing it to inkey( 0.1 ) did the trick. 
I could not reproduce this problem in GTWVT.
So I assume the event dispatching by QT engine
is somewhat different than Windows itself.

Przemek, can we implement in Inkey() some very 
small value to release the CPU cycles ?

Regards
Pritpal Bedi

PS : To check above just change Inkey() to Inkey(0.1)
in the mainloop of wvtext.prg.

   

-- 
View this message in context: 
http://www.nabble.com/SF.net-SVN%3A-harbour-project%3A-10932--trunk-harbour-tp23226134p23228360.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to