VirtualBox

Changeset 4047 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 6, 2007 8:31:37 PM (17 years ago)
Author:
vboxsync
Message:

GUI: Get rid of the annoying delay taking place in the VM Console window when the menu bar (or any action from that menu bar) is activated for the first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r3701 r4047  
    114114}
    115115
    116 int main( int argc, char ** argv )
     116int main (int argc, char **argv)
    117117{
    118118    /* initialize VBox Runtime */
     
    135135
    136136    QIApplication a (argc, argv);
     137
     138#ifdef Q_WS_WIN
     139    /* Drag in the sound drivers and DLLs early to get rid of the delay taking
     140     * place when the main menu bar (or any action from that menu bar) is
     141     * activated for the first time. This delay is especially annoying if it
     142     * happens when the VM is executing in real mode (which gives 100% CPU
     143     * load and slows down the load process that happens on the main GUI
     144     * thread to several seconds). */
     145    PlaySound (NULL, NULL, 0);
     146#endif
    137147
    138148#ifndef RT_OS_DARWIN
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette