diff -r 0c5b3d8ea751 -r df6ad9bd4687 tactilefeedback/tactilefeedbackclient/src/touchfeedbackclient.cpp --- a/tactilefeedback/tactilefeedbackclient/src/touchfeedbackclient.cpp Tue Sep 14 21:53:31 2010 +0300 +++ b/tactilefeedback/tactilefeedbackclient/src/touchfeedbackclient.cpp Wed Oct 13 14:52:48 2010 +0300 @@ -35,8 +35,6 @@ const TInt KTactileChunkInitialSize = 4096; // 4kB const TInt KTactileChunkMaxSize = 262144; // 256kB const TUid KTactileClickPluginUid = { 0x2000B493 }; - -_LIT( KChunkNameFormat, "PID_0x%Lx_TID_0x%Lx" ); // ======== MEMBER FUNCTIONS ======== // --------------------------------------------------------------------------- @@ -88,14 +86,15 @@ } // #2 Create shared chunk + RThread me; + TTactileFeedbackConnectData data; // Set window group identifier data.iWindowGroupId = CCoeEnv::Static()->RootWin().Identifier(); - // We use our own process id and thread id as name for the chunk - data.iChunkName.Format( KChunkNameFormat, - RProcess().Id().Id(), RThread().Id().Id() ); + // We use our own thread name as name for the chunk + data.iChunkName.Copy( me.Name().Right( KMaxKernelName ) ); // Now create the chunk TInt err = iChunk.CreateGlobal( data.iChunkName,