<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">It's before the call, when deadlock occured, I attached the debugger, and then found out it's the windows WaitForObject call keeps waiting. Not sure if the server side finished the call or not. I will pay more attention next time.<BR><BR>--- On <B>Tue, 9/20/11, Klaus Espenlaub <I><klaus.espenlaub@oracle.com></I></B> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Klaus Espenlaub <klaus.espenlaub@oracle.com><BR>Subject: Re: [vbox-dev] CMachine.SetExtraData() deadlocks<BR>To: vbox-dev@virtualbox.org<BR>Date: Tuesday, September 20, 2011, 2:27 PM<BR><BR>
<DIV class=plainMail>On 20.09.2011 18:40, Huihong Luo wrote:<BR>> very rarely, I got deadlock by invoking this method.<BR>> After debugging, it deads lock at WaitForSingleObject Windows API inside<BR>> some rpc stub.<BR><BR>Is the deadlock before (or after) actually invoking the method? Haven't seen such issues in a long time, but if they're happening they're very nasty to debug, because the COM machinery internals is totally undocumented closed source code.<BR><BR>> What is the correct context to invoke this call? such as threading<BR>> requirement?<BR><BR>VBoxSVC is a "local" COM service which by design supports arbitrary concurrency.<BR><BR>The caller should initialize the COM client side appropriately, but that's a generic requirement which isn't specific to VirtualBox.<BR><BR>Klaus<BR><BR>> Thanks<BR>> <BR>> <BR>> <BR>> _______________________________________________<BR>> vbox-dev mailing list<BR>> <A
 href="http://us.mc1603.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR><BR>_______________________________________________<BR>vbox-dev mailing list<BR><A href="http://us.mc1603.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR><A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></td></tr></table>