uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 18 1801340c26a2
parent 13 3a60ebea00d0
child 19 e5af45d51884
--- a/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp	Thu Jul 15 19:40:07 2010 +0300
+++ b/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp	Thu Aug 19 10:48:02 2010 +0300
@@ -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));