Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 1.0 / 5
(1.0 / 5 - 1 vote cast)

This page was last modified 15:57, 31 May 2008.

KIC000846 - Symbian C++ stub application for Flash Lite 3 - problem with Adobe developer installation package

From Forum Nokia Wiki


ID KIC000846 Creation date March 5, 2008
Platform S60 3rd Edition, FP2 devices running Flash Lite 3 Devices Devices running Flash Lite 3
Category Flash Lite Subcategory  

Overview

The application fails with the KERN-EXEC 3 error code when returning the CApaDocument instance from flash2ui.dll.


Description

When the CApaDocument instance is returned in flash2ui.dll in Web Runtime-enabled devices, the KERN-EXEC 3 error is returned.


Solution

Two new features are added to Flash Lite 3.0. These 2 features use 2 variables, iReserved1 and iReserved2, which were not used in earlier versions. If these variables have uninitialized values, the KERN-EXEC 3 error is returned.

Flash Lite 3.0 supports 2 new features for Flash stub developers. This is only applicable to the Nokia version of Flash Lite.


Precompiled ActionScript extensions

SWF in the stub application can refer to library SWF. FlashUIConfig defined in flash_ui.h has to be used to pass the precompiled SWF file to the stub application. This precompiled SWF has to be in the private data caged area to protect it from accidental deletion or replacing by malicious SWFs. FlashUIConfig.iReserved1 is used to set the ActionScript library. If Flash stub applications do not use the precompiled ActionScript library, they should set FlashUIConfig.iReserved1 to NULL.

Example code:

const TUid KUidFlashStubApp = { 0x1027377B };
  _LIT(KStubFlashContent, "\\Private\\1027377B \\example.swf");
  _LIT(KStubActionScriptExtn,"math.swf"); 
   const TUint32 KContentChecksum = 0;
  
  FlashUIConfig config;
  config.iIsMMI = EFalse;
  config.iIsStubApp = ETrue;
  config.iContentFileName.Copy(KStubFlashContent);
  config.iContentChecksum = KContentChecksum;
  config.iReserved1.Copy(KStubActionScriptExtn);
  Config.iReserved2 = 0;


Increased dynamic heap

The default maximum heap allowed for Flash stub applications is currently 2MB, which may be too little for some Flash content. This results in Out of Memory for some Flash content. Now Flash stub developers can utilize the increased maximum dynamic heap feature to run some heavy flash content. The FlashUIConfig.iReserved2 member variable has to be set to the maximum allowed dynamic heap. Only the first 16 bits are used. The value specified here will be multiplied by 1KB.

Example code:

FlashUIConfig config;
   config.iIsMMI = EFalse;
   config.iIsStubApp = ETrue; //This should be ETrue for Stub
   config.iContentFileName.Copy(KStubFlashContent);
   config.iContentChecksum = KContentChecksum;
   config.iExtensions = NULL;
           config.iReserved1 = NULL;
   config.iReserved2 = 4096;// Max 4MB dynamic heap memory

Due to these two features, it is expected that if these fields are not used, they need to be set Null/0 by Flash stub applications.

Related Discussions
Thread Thread Starter Forum Replies Last Post
Deployment of System Applications ray() Symbian Signing, Certification and Security 9 2008-02-16 23:42
Signing problem concerning using DLL files whitewinds General Symbian C++ 15 2007-05-08 09:57
N95 8GB - new v20 firmware aderutter Flash Lite on Nokia Devices 18 2008-07-03 10:47
Developer - ffmpeg installation ranjuvs News, Announcements and Job Listings 0 2008-05-18 17:38
Invoking Flashlite from within Symbian C++ application GreatWarrior General Symbian C++ 0 2007-01-25 07:51
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZflashE5fliteQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX