<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>(sorry, last email was sent accidently)</DIV>
<DIV> </DIV>
<DIV>I found the problem,</DIV>
<DIV> </DIV>
<DIV>in process-win.cpp<FONT size=2><FONT size=2></DIV>
<DIV> </DIV>
<DIV>RTR3DECL(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2>) RTProcCreate(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>char</FONT></FONT><FONT size=2> *pszExec, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>char</FONT></FONT><FONT size=2> * </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</FONT></FONT><FONT size=2> *papszArgs, RTENV Env, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>unsigned</FONT></FONT><FONT size=2> fFlags, PRTPROCESS pProcess)</DIV>
<DIV>{</DIV>
<DIV> </DIV><FONT size=2>
<DIV>HANDLE hProcess = (HANDLE)_spawnve(_P_NOWAITO, pszExec,  papszArgs, papszEnv);</DIV>
<DIV> </DIV>
<DIV><FONT color=#ff00ff>the 1st argument of  papszArgs needs to be quoted if containing space</FONT></DIV>
<DIV> </DIV></FONT></FONT>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>// test app</DIV>
<DIV><FONT color=#008000 size=2><FONT color=#008000 size=2>
<DIV>// spawnve.cpp : Defines the entry point for the console application.</DIV>
<DIV>//</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"stdafx.h"</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2><windows.h></DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2><process.h></DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>int</FONT></FONT><FONT size=2> _tmain(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> argc, _TCHAR* argv[])</DIV>
<DIV>{</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>static</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>char</FONT></FONT><FONT size=2> pszVBoxPath[MAX_PATH];</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>char</FONT></FONT><FONT size=2> *papszArgs[] = { NULL, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"-test"</FONT></FONT><FONT size=2>, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"2D"</FONT></FONT><FONT size=2>, NULL};</DIV>
<DIV>strcpy(pszVBoxPath, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"c:\\bugs\\Sun VirrtualBox\\VBoxTestOGL.exe"</FONT></FONT><FONT size=2>);</DIV>
<DIV>papszArgs[0] = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"\"c:\\bugs\\Sun VirrtualBox\\VBoxTestOGL.exe\""</FONT></FONT><FONT size=2>; </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//pszVBoxPath; /* argv[0] */</DIV></FONT></FONT><FONT size=2>
<DIV>HANDLE hProcess = (HANDLE)_spawnve(_P_NOWAITO, pszVBoxPath, papszArgs, NULL);</DIV>
<DIV>WaitForSingleObject(hProcess, INFINITE);</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</DIV>
<DIV>}</DIV></FONT></FONT></DIV><BR><BR>--- On <B>Wed, 11/18/09, Mikhail Sennikovsky <I><Mikhail.Sennikovsky@Sun.COM></I></B> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Mikhail Sennikovsky <Mikhail.Sennikovsky@Sun.COM><BR>Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org, "Alexey Eremenko" <al4321@gmail.com><BR>Date: Wednesday, November 18, 2009, 11:22 AM<BR><BR>
<DIV id=yiv834773262>Thanks for the investigation. I'll debug it here on my side, although I'm sure it works here when installed under C:\Program Files\Sun\VirtualBox\, i.e. path with spaces.<BR>Re your second question: yes, it always use OpenGL currently even on windows hosts. <BR>This allows making a unified cross-platform engine for 2D acceleration that works on Linix and Mac hosts as well.<BR>Perhaps someday in the future we'll have a DirectX-based backend for windows.<BR>
<BLOCKQUOTE type="cite">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit" vAlign=top>
<DIV>yes, it's XP guest on Vista host.</DIV>
<DIV> </DIV>
<DIV>I debugged a bit, the invocation of VBoxTestOGL.exe, (for example, in following code)</DIV>
<DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2> </FONT></FONT></DIV>
<DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>bool</FONT></FONT><FONT size=2> VBoxVHWAInfo::checkVHWASupport()</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>always exit with status 1 (monitored by procmon.exe) if the path contains a space. Works well after removing the space, exits 0.</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>If I just invoke VBoxTestOGL.exe from command line by hand, e..g</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>"VBoxTestOGL.exe -test 2D" it works even from a path with spaces</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>another question, since this test exe checks OpenGL, does that mean the acceleration always uses OpenGL even on windows host where DirectX is available?</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>- Huihong</FONT><BR><BR>--- On <B>Wed, 11/18/09, Alexey Eremenko <I><A class=moz-txt-link-rfc2396E href="http://us.mc343.mail.yahoo.com/mc/compose?to=al4321@gmail.com" target=_blank rel=nofollow ymailto="mailto:al4321@gmail.com"><al4321@gmail.com></A></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Alexey Eremenko <A class=moz-txt-link-rfc2396E href="http://us.mc343.mail.yahoo.com/mc/compose?to=al4321@gmail.com" target=_blank rel=nofollow ymailto="mailto:al4321@gmail.com"><al4321@gmail.com></A><BR>Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?<BR>To: <A class=moz-txt-link-abbreviated href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>Date: Wednesday, November 18, 2009, 7:17 AM<BR><BR>
<DIV id=yiv799912232>
<DIV class=gmail_quote>On Wed, Nov 18, 2009 at 2:47 PM, Mikhail Sennikovsky <SPAN dir=ltr><<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=Mikhail.Sennikovsky@sun.com" target=_blank rel=nofollow>Mikhail.Sennikovsky@sun.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>Which host platform are you running on?<BR><BR clear=all></DIV></BLOCKQUOTE>
<DIV> </DIV></DIV>Huihong Luo usually runs Windows-on-Windows.<BR><BR>-- <BR>-Alexey Eromenko "Technologov"<BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>vbox-dev mailing list<BR><A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow>vbox-dev@virtualbox.org</A><BR><A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank rel=nofollow>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><PRE><HR width="90%" SIZE=4>
_______________________________________________
vbox-dev mailing list
<A class=moz-txt-link-abbreviated href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A>
<A class=moz-txt-link-freetext href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank rel=nofollow>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A>
  </PRE></BLOCKQUOTE><BR></DIV></BLOCKQUOTE></td></tr></table>