Changeset 299 in vbox
- Timestamp:
- Jan 25, 2007 1:42:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r286 r299 6184 6184 alock.enter(); 6185 6185 6186 #ifdef VBOX_VRDP 6187 if (VBOX_SUCCESS (vrc)) 6188 { 6189 /* Start the VRDP server after the VM is created. */ 6190 ConsoleVRDPServer *server = console->consoleVRDPServer(); 6191 Assert (server); 6192 /// @todo (dmik) 6193 // does VRDP server call Console from the other thread? 6194 // Not sure, so leave the lock just in case 6195 alock.leave(); 6196 vrc = server->Launch(); 6197 alock.enter(); 6198 if (VBOX_FAILURE (vrc)) 6199 { 6200 Utf8Str errMsg; 6201 switch (vrc) 6202 { 6203 case VERR_NET_ADDRESS_IN_USE: 6204 { 6205 ULONG port = 0; 6206 console->mVRDPServer->COMGETTER(Port) (&port); 6207 errMsg = Utf8StrFmt (tr ("VRDP server port %d is already in use"), 6208 port); 6209 break; 6210 } 6211 default: 6212 errMsg = Utf8StrFmt (tr ("Failed to launch VRDP server (%Vrc)"), 6213 vrc); 6214 } 6215 LogRel (("Failed to launch VRDP server (%Vrc), error message: '%s'\n", 6216 vrc, errMsg.raw())); 6217 hrc = setError (E_FAIL, errMsg); 6218 } 6219 } 6220 #endif /* VBOX_VRDP */ 6221 6186 6222 if (VBOX_SUCCESS (vrc)) 6187 6223 { … … 6330 6366 } 6331 6367 while (0); 6332 6333 #ifdef VBOX_VRDP6334 if ((!FAILED (hrc)) && VBOX_SUCCESS (vrc))6335 {6336 /* Start the VRDP server after the VM is started. */6337 ConsoleVRDPServer *server = console->consoleVRDPServer();6338 Assert (server);6339 /// @todo (dmik)6340 // does VRDP server call Console from the other thread?6341 // Not sure, so leave the lock just in case6342 alock.leave();6343 vrc = server->Launch();6344 alock.enter();6345 if (VBOX_FAILURE (vrc))6346 {6347 Utf8Str errMsg;6348 switch (vrc)6349 {6350 case VERR_NET_ADDRESS_IN_USE:6351 {6352 ULONG port = 0;6353 console->mVRDPServer->COMGETTER(Port) (&port);6354 errMsg = Utf8StrFmt (tr ("VRDP server port %d is already in use"),6355 port);6356 break;6357 }6358 default:6359 errMsg = Utf8StrFmt (tr ("Failed to launch VRDP server (%Vrc)"),6360 vrc);6361 }6362 LogRel (("Failed to launch VRDP server (%Vrc), error message: '%s'\n",6363 vrc, errMsg.raw()));6364 hrc = setError (E_FAIL, errMsg);6365 }6366 }6367 #endif /* VBOX_VRDP */6368 6368 6369 6369 /* On failure, destroy the VM */
Note:
See TracChangeset
for help on using the changeset viewer.