--- 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));