Skip to main content

"Failed to Set the Configuration you should have the right to Control this Graphics Device".

No replies
dbreitenfeld
Offline
Joined: 2007-03-18
Points: 0

Hi everyone,

When we try to switch from 2D to 3D we get this message: "Failed to Set the Configuration you should have the right to Control this Graphics Device".
We get this on most of the 3D players and our 3D emulator. We don't usually use the HAVI configuration and HAVI devices so this is a bit new to us.
Here is the code:

private boolean changeDisplay(boolean changeTo3D)
{
boolean passed = false;
try
{
HScreen screen = HScreen.getDefaultHScreen();
if (screen == null)
return false;

HGraphicsDevice device = screen.getDefaultHGraphicsDevice();
if (device == null)
return false;

HGraphicsConfigTemplate template = new HGraphicsConfigTemplateS3D();

if (changeTo3D)
template.setPreference(HGraphicsConfigTemplateS3D.S3D, S3DProperty.TWO_PLANES,HGraphicsConfigTemplateS3D.REQUIRED);
else
template.setPreference(HGraphicsConfigTemplateS3D.S3D, S3DProperty.TWOD_OUTPUT ,HGraphicsConfigTemplateS3D.REQUIRED);

HGraphicsConfiguration config = device.getBestConfiguration(template);
if (config != null)
{
device.setGraphicsConfiguration(config);
passed = true;
}
}
catch(Exception ex)
{
passed = false;
}
catch(Throwable ex)
{
passed = false;
}
return passed;
}

Any thoughts on what might cause this message?
Cheers,
Denny