VirtualBox

Ignore:
Timestamp:
Feb 8, 2010 11:13:28 AM (15 years ago)
Author:
vboxsync
Message:

Main/Machine+Console: Extend the scope of the power up progress object, and collect error information from the frontend. Much better error signalling when the VM is started via openRemoteSession. Adjusted documentation accordingly, and finally fixed the incomprehensible messages emitted by VBoxManage startvm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r26313 r26323  
    4949
    5050#include "Global.h"
     51#include "VirtualBoxErrorInfoImpl.h"
    5152#include "GuestImpl.h"
    5253#include "KeyboardImpl.h"
     
    74067407        /* Notify the progress object of the success */
    74077408        task->mProgress->notifyComplete(S_OK);
     7409        console->mControl->SetPowerUpInfo(NULL);
    74087410    }
    74097411    else
     
    74117413        /* The progress object will fetch the current error info */
    74127414        task->mProgress->notifyComplete(rc);
     7415        ProgressErrorInfo info(task->mProgress);
     7416        ComObjPtr<VirtualBoxErrorInfo> errorInfo;
     7417        rc = errorInfo.createObject();
     7418        if (SUCCEEDED(rc))
     7419        {
     7420            errorInfo->init(info.getResultCode(),
     7421                            info.getInterfaceID(),
     7422                            info.getComponent(),
     7423                            info.getText());
     7424            console->mControl->SetPowerUpInfo(errorInfo);
     7425        }
     7426        else
     7427        {
     7428            /* If it's not possible to create an IVirtualBoxErrorInfo object
     7429             * signal success, as not signalling anything will cause a stuck
     7430             * progress object in VBoxSVC. */
     7431            console->mControl->SetPowerUpInfo(NULL);
     7432        }
    74137433
    74147434        LogRel(("Power up failed (vrc=%Rrc, rc=%Rhrc (%#08X))\n", vrc, rc, rc));
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