Archived:Running Open C OpenGL example on hardware-accelerated devices fails (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Article Metadata
Tested with
Devices(s): Nokia N93(i), Nokia N95, Nokia E90 Communicator
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1
Article
Created: User:Technical writer 1
(19 Nov 2007)
Last edited: hamishwillee
(19 Jun 2012)
Overview
The OpenC plug-in has the opencopenglex example application. However, installing and running it on a hardware-accelerated device gives the following error: "StartGameL failed with result=-6006!".
Description
The OpenC plug-in can be downloaded here. It has the OpenGL example which works fine on most devices. However, it gives the error "StartGameL failed with result=-6006!" when installed on a hardware-accelerated device, such as the Nokia N93 and the Nokia N95.
Solution
The error occurs because the CCoeEnv is not initialized. Adding the following lines to the file openglex.cpp solves this issue.
int main(void)
{
..................
// Create the control environment.
CCoeEnv* environment = new (ELeave) CCoeEnv();
TRAPD( err, environment->ConstructL( ETrue, 0 ) );
...................
}


(no comments yet)