BUG: Mouse Events Handled After Program Termination

ID: Q147766

4.00    | 4.00
WINDOWS | WINDOWS NT kbprg kbbuglist

The information in this article applies to:

SYMPTOMS

When you exit a Fortran QuickWin application, mouse event callbacks continue to function for that application.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Build and run the following sample code. When asked to exit the program, choose No. Pressing the left mouse button in the graphics window yields the message, "Inside MouseEvent Handler." This behavior is erroneous because QuickWin event callbacks should become inactive after the application has terminated.

Sample Code to Illustrate Problem

! Compile options needed: /MW

      use msflib
      external MouseEvent
      print *,'Hello world'
      i = registermouseevent( 0, MOUSE$LBUTTONDOWN, MouseEvent )
      end

      subroutine MouseEvent
      print *,'Inside MouseEvent Handler'
      end subroutine

Additional reference words: 4.00 KBCategory: kbprg kbbuglist KBSubcategory: FORTLngIss
Keywords          : kbFortranPS kbLangFortran kbbuglist
Version           : 4.00    | 4.00
Platform          : NT WINDOWS

Last Reviewed: March 3, 1996