uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 20 31fccae4f8a7
parent 19 e5af45d51884
--- a/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp	Tue Aug 31 16:07:35 2010 +0300
+++ b/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp	Wed Sep 01 12:16:53 2010 +0100
@@ -98,13 +98,21 @@
 	        }
 	    else
 	    	{
+            // Maximum heap size for alfredserver thread. 
+            // Emulator has smaller heap size in order not to cause memory issues.
+#ifdef __WINSCW__
+            const TInt KAlfServerMaxHeapSize = 10*1024*1024;
+#else
+            const TInt KAlfServerMaxHeapSize = 16*1024*1024;
+#endif
+
     	    RThread serverThread;
     	    User::LeaveIfError(serverThread.Create(
 	    	        KAlfServerThreadName,
 	    	        AlfThreadFucntion,
 	    	        16384, // magic
 	    	        4*1024*1024, // uses own heap for now
-	    	        10*1024*1024,
+	    	        KAlfServerMaxHeapSize,
 	    	        0,
 	    	        EOwnerThread));