homescreensrv_plat/sapi_homescreenplugin/tsrc/common/src/mt_hsps.cpp
branchRCL_3
changeset 18 bd874ee5e5e2
parent 0 79c6a41cd166
child 51 15e4dd19031c
--- a/homescreensrv_plat/sapi_homescreenplugin/tsrc/common/src/mt_hsps.cpp	Fri Feb 19 23:07:29 2010 +0200
+++ b/homescreensrv_plat/sapi_homescreenplugin/tsrc/common/src/mt_hsps.cpp	Fri Mar 12 15:43:54 2010 +0200
@@ -36,7 +36,7 @@
 _LIT8( KHspsAppUid, "appUid" );
 
 // Heap size for test step thread
-const TUint KDefaultHeapSize = 0x10000;       
+const TUint KDefaultHeapSize = 0x100000;       
 
 // Test step data
 typedef struct
@@ -595,11 +595,12 @@
         User::WaitForRequest( status );
         err = status.Int();
         
-        testThread.Close();
-
         // Give test thread some time to close
         User::After( 2000000 );
-
+        
+        // Terminate thread.
+        testThread.Kill( KErrNone );
+        testThread.Close();
         }
     
     User::LeaveIfError( err );