Menu

#4 Unclean exit when closing window.

0.0.7
open-later
General (3)
1
2004-10-05
2004-02-20
No

Most of the time, when closing the window from the
window manager's close icon, the app does NOT exit
gracefully. Rather, the JVM exits, but Vim still hangs
around in some broken terminal mode, waiting for you to
type :quit to exit.

On the other hand, choosing 'File->Exit' from the menu
works just fine.

Discussion

  • Joe Khoobyar

    Joe Khoobyar - 2004-02-21

    Logged In: YES
    user_id=443285

    After reviewing the menu-handling code, I'm convinced that
    my original guess was correct. The problem is that one of
    the newer threads is the one handling this close icon
    callback, which in turn just tells the gui to close down,
    leaving the primordial thread still running. In the menu
    situation, the newer thread actually just posts the menu
    command to the input buffer as a special type of virtual
    'keystroke'. This buffer, of course, is later gobbled by
    the primordial thread.

    With the way that Vim's logic works, it'll much easier to
    just have the newer thread produce something that is then
    consumed by the primordial thread in order to exit.
    Assuming, of course, that this is the only problem here.
    (knock on wood)

     
  • Joe Khoobyar

    Joe Khoobyar - 2004-10-05

    Logged In: YES
    user_id=443285

    This occasionally still happens, and is likely related to
    concurrency issues when doing something that requires a
    repaint, and then exiting before the repaint is finished....
    etc. This does need to be fixed, but is low priority right now.

     
  • Joe Khoobyar

    Joe Khoobyar - 2004-10-05
    • milestone: 377495 --> 0.0.7
    • status: open --> open-later
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.