ECom Plugin not Found when Phone language is changed ..
| Tue, 2007-08-07 07:02 | |
|
|
HI Guys, My application is using Some Audio Plugins, Problem is, if i change the phone language with a resatart. My application wont Find the plugins, it gives an error note of "plugin are not found" ! And if i restart the phone again manually then my application works fine with Plugins.. i'm not able trace out wat could be the problem. so Help me out.. Thanx in advance.. !! ----------------- SYmbiaN RocKs --------------------- |






Forum posts: 1232
Do your application autostart, or do you start in manually?
Only thing I could think of is that the phone language restart in some way would make your app start before the ecom server has read all the plugin definitions, and you don't find it because of this...
Otherwise I don't understand how it couldn't find them...
But this can't be it if you manually start it... but if you do, maybe try to let it rest for 2 min or so after startup to really make sure all after-startup initialization is done...
Either that, or it sounds like a bug in the ECOM server or something...
Forum posts: 27
Are you reading the ecom plugin names from resource files or something?
Forum posts: 10
Hey, Thanks for replying..
My Application wont auto start. i need to lanch the application manually after the restart.
Alh, even after giving 2 mins rest , my application didnt find the plugin.. i'm confused bcos if i restart the phone again manually then application finds the plugin..
To brian.egan reply :
i'm not reading the ecom plugin names from resource file. Below is my code to resolve my plungin :
// ********************** Here is the code ********************
TAny *impl;
TUid implementationUid;
RImplInfoPtrArray infoArray;
TRAPD(err,
{
REComSession::ListImplementationsL(TUid::Uid(KMyApplicationAudioAdapterInterfaceUid), infoArray);
for ( TInt i = 0; i < infoArray.Count(); i++ )
{
implementationUid = infoArray[i]->ImplementationUid();
// impl = REComSession::CreateImplementationL(implementationUid, _CAST(CMyApplicationAudioPluginAdapter,iDtor_ID_Key), this);
impl = REComSession::CreateImplementationL(implementationUid, _FOFF(CMyApplicationAudioPluginAdapter,iDtor_ID_Key), this);
if ( impl )
{
iMyApplicationAudioPlugins.Append((CMyApplicationAudioPluginAdapter*)impl);
}
}
});
infoArray.ResetAndDestroy();
so after this function, iMyApplicationAudioPlugins.Count() gets me "Zero". or is any other way to call Ecom Plugins..
----------------- SYmbiaN RocKs ---------------------
Forum posts: 10
Actually i'm talking abt Symbian 3rd edition... For all other lower version's my application is working fine with plugin.
Is there any Different way to Call ECom Plugin in 3rd Edition ??
Thanks in advance..
----------------- SYmbiaN RocKs ---------------------