<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><br><div><span><br></span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> Klaus Espenlaub <klaus.espenlaub@oracle.com> schrieb am 15:22 Freitag, 24.Januar 2014:<br> </font> </div>  <div class="y_msg_container">Hi Karoline,<br clear="none"><br clear="none">On 24.01.2014 10:45, Karoline Haus wrote:<br clear="none">> Hi<br clear="none">> I'm building a VBox Frontend graphics driver working similar to VBoxSDL.<br clear="none">> When I try to start the VM and get the IDisplay pointer
 using<br clear="none">><br clear="none">> gConsole->COMGETTER(Display)(gDisplay.asOutParam());<br clear="none">><br clear="none">> then gDisplay is always NULL. In what cases can this happen? I have no<br clear="none">> idea how to debug the problem.<br clear="none"><br clear="none">This sounds like the type of the session lock you're requesting is <br clear="none">incorrect. For some time now (since 4.2) we have split out a special <br clear="none">lock type for VM processes, and only those will get the objects below <br clear="none">the console initialized. This greatly lowers the cost for "normal API <br clear="none">client" sessions, which are used e.g. by VBoxManage and the VM manager <br clear="none">GUI, as they never needed these objects.<br clear="none"><br clear="none">So double check if you use LockType_VM - all VM frontends do this since <br clear="none">the split happened (and the API change is documented in the SDK
 manual), <br clear="none">see VBoxSDL.cpp.<br clear="none"><br clear="none">Hope this helps,<br clear="none">Klaus<div class="yqt3893208059" id="yqtfd31452"><br clear="none">> Any pointers would be really appreciated.<br clear="none">><br clear="none">> Thanks,<br clear="none">> Karoline</div><br clear="none">You were right - that was the problem!!! Thanks!<br><br>Karoline<br><br></div>  </div> </div>  </div> </div></body></html>