|
(sorry, last email was sent accidently)
I found the problem,
in process-win.cpp
RTR3DECL(int) RTProcCreate(const char *pszExec, const char * const
*papszArgs, RTENV Env, unsigned fFlags,
PRTPROCESS pProcess)
{
HANDLE hProcess = (HANDLE)_spawnve(_P_NOWAITO, pszExec,
papszArgs, papszEnv);
the 1st argument of papszArgs needs
to be quoted if containing space
}
// test app
// spawnve.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <windows.h>
#include <process.h>
int _tmain(int argc, _TCHAR* argv[])
{
static char pszVBoxPath[MAX_PATH];
const char *papszArgs[] = { NULL, "-test", "2D", NULL};
strcpy(pszVBoxPath, "c:\\bugs\\Sun
VirrtualBox\\VBoxTestOGL.exe");
papszArgs[0] = "\"c:\\bugs\\Sun
VirrtualBox\\VBoxTestOGL.exe\""; //pszVBoxPath;
/* argv[0] */
HANDLE hProcess =
(HANDLE)_spawnve(_P_NOWAITO, pszVBoxPath, papszArgs, NULL);
WaitForSingleObject(hProcess,
INFINITE);
return 0;
}
--- On Wed, 11/18/09, Mikhail Sennikovsky <[email protected]>
wrote:
From: Mikhail Sennikovsky <[email protected]>
Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?
To: "Huihong Luo" <[email protected]>
Cc: [email protected], "Alexey Eremenko" <[email protected]>
Date: Wednesday, November 18, 2009, 11:22 AM
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.
Re your second question: yes, it always use OpenGL currently even on
windows hosts.
This allows making a unified cross-platform engine for 2D acceleration
that works on Linix and Mac hosts as well.
Perhaps someday in the future we'll have a DirectX-based backend for
windows.
|
yes, it's XP guest on Vista host.
I debugged a bit, the invocation of
VBoxTestOGL.exe, (for example, in following code)
bool
VBoxVHWAInfo::checkVHWASupport()
always exit with status 1
(monitored by procmon.exe) if the path contains a space. Works well
after removing the space, exits 0.
If I just invoke VBoxTestOGL.exe
from command line by hand, e..g
"VBoxTestOGL.exe -test 2D" it
works even from a path with spaces
another question, since this test
exe checks OpenGL, does that mean the acceleration always uses OpenGL
even on windows host where DirectX is available?
Thanks,
From: Alexey Eremenko <[email protected]>
Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?
To: [email protected]
Date: Wednesday, November 18, 2009, 7:17 AM
On Wed, Nov 18, 2009 at
2:47 PM, Mikhail Sennikovsky <[email protected]>
wrote:
Which host platform are you running on?
Huihong Luo usually runs Windows-on-Windows.
--
-Alexey Eromenko "Technologov"
-----Inline Attachment Follows-----
|
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
|