<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - How to increase stack size of application - Comments</title>
 <link>http://www.newlc.com/topic-3523</link>
 <description>Comments for &quot;How to increase stack size of application&quot;</description>
 <language>en</language>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10703</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;Can any one know how much max stack size i can set in mmp file which will be allocated by target(series &amp;nbsp;60). I have heard that max allowed stack size is 16 KB even if setting 32 KB in mmp file. On actual target OS will only provide max 16 KB memory for stack to any application.&lt;br /&gt;&lt;br /&gt;Do any one make me clear... &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/rolleyes.gif&quot; alt=&quot;Roll Eyes&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Rgds&lt;br /&gt;chandrashekhar&lt;/div&gt;</description>
 <pubDate>Mon, 08 Nov 2004 03:08:47 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">comment 10703 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10702</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;Is it possible to &lt;i&gt;split&lt;/i&gt; these files &lt;i&gt;to smaller pieces&lt;/i&gt;? That way, you wouldn&#039;t have to allocate too much memory for the &lt;b&gt;whole &lt;/b&gt;data. I don&#039;t know if this suggestion makes sense, because I don&#039;t know MIDI and PCM file formats.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;tOtE&lt;/div&gt;</description>
 <pubDate>Fri, 05 Nov 2004 16:50:15 +0100</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 10702 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10701</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;Actually u r right to have another thread for data coversion application and through global flag or other mechanism we have to check if data has generated.&lt;br /&gt;&lt;br /&gt;But according to Simbian manual as they suggest try to avoid using multi thread because it is little &amp;nbsp;slow and resource consuming. That why i have implemented in single thread &amp;nbsp;as exmple code and integrated my application.&lt;br /&gt;&amp;gt;&amp;gt;I believe the epocstacksize flag in the mmp file only allows you to adjust the size of the stack for an exe and not for an app.&lt;br /&gt;&lt;br /&gt;Though manual does not say about adjusting stack size will only effective in exe not in .app but i think u r right.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do you think active object concept will be better to use in place of another thread ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Rgds&lt;br /&gt;chandrashekhar&lt;/div&gt;</description>
 <pubDate>Fri, 05 Nov 2004 03:54:52 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">comment 10701 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10700</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;ItÂ’s been awhile since I have had to muck with this, but I believe the epocstacksize flag in the mmp file only allows you to adjust the size of the stack for an exe and not for an app. &amp;nbsp;This has to do with how apps are launched using apprun.exe.&lt;br /&gt;&lt;br /&gt;There are a couple things you can do&lt;br /&gt;&lt;br /&gt;A) Try to get as much on the heap as you can&lt;br /&gt;B) Put the conversion code into its own thread in the application, you can manually adjust the size of the stack in a thread using RThread::Create. &amp;nbsp;Note: I didn&amp;#039;t suggest you actually use threads, merely that it would allow you a means to adjust the stack size. &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;C) Move the conversion code into an executable and come up with a scheme for your application to call the executable for the conversion and wait for it (using a global semaphore or file system notifier, or other methods) &lt;br /&gt;&lt;br /&gt;These are just ideas...&lt;br /&gt;&lt;br /&gt;If possible, A) is probably the easiest of the above; it depends on your code size&lt;br /&gt;&lt;br /&gt;One example of &amp;quot;C&amp;quot; working is Peter Yipton&amp;#039;s UIQ port to Doom, which you can find on &lt;a href=&quot;http&amp;#58;//www.yipton.net/&quot; target=&quot;_blank&quot;&gt;http://www.yipton.net/&lt;/a&gt; . &amp;nbsp;&lt;br /&gt;&lt;br /&gt;Anyhow, good luck&lt;br /&gt;Darin&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 16:07:53 +0100</pubDate>
 <dc:creator>dishneau</dc:creator>
 <guid isPermaLink="false">comment 10700 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10699</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;As i have said that &amp;nbsp;my application converts midi file format to PCM data format so when i am asking to generate more tunes(polyphony) then it creshes , if i am using less tunes (polyphony)then it works fine on target.&lt;br /&gt;That why i guess that it might that it crashes because of stack overflow.&lt;br /&gt;&lt;br /&gt;Thanx alot&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 11:41:07 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">comment 10699 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10698</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;In which case, I&#039;m affraid I don&#039;t know.&lt;br /&gt;&lt;br /&gt;It&#039;s not something people do that often for good reason &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;What exactly is your problem? &amp;nbsp;How do you know it is the stack overflowing?&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 11:32:22 +0100</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 10698 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10697</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;Thanx for reply, i have used rounded value only as follows but still it does not solved my problem.&lt;br /&gt;&lt;br /&gt;UID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x100039CE 0x102045A9&lt;br /&gt;TARGETPATH &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\system\apps\proj&lt;br /&gt;&lt;br /&gt;EPOCSTACKSIZE 65536&lt;br /&gt;&lt;br /&gt;thanx&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 11:28:20 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">comment 10697 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10696</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Try rounding it up to 8K blocks - epocstacksize 16384 for 16k.&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 11:11:29 +0100</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 10696 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10695</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi dude,&lt;br /&gt;I have added a line in my mmp file as follows but and given its size but it seems no effect&lt;br /&gt;&lt;br /&gt;SRCDBG&lt;br /&gt;OPTION GCC &amp;nbsp;-save-temps&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;epocstacksize &amp;nbsp; 16000&lt;/span&gt;&lt;br /&gt;TARGET &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;proj.app&lt;br /&gt;TARGETTYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;app&lt;br /&gt;UID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x100039CE 0x102045A9&lt;br /&gt;TARGETPATH &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\system\apps\proj&lt;br /&gt;&lt;br /&gt;SOURCEPATH &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;..\src&lt;br /&gt;SOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Proj.cpp&lt;br /&gt;SOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProjApplication.cpp &lt;br /&gt;SOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProjAppView.cpp&lt;br /&gt;SOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProjAppUi.cpp&lt;br /&gt;SOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProjDocument.cpp &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Is it correct or have another way to do ?&lt;br /&gt;&lt;br /&gt;Thanks alot.&lt;br /&gt;chandrashekhar&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 10:56:18 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">comment 10695 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523#comment-10694</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;epocstacksize in your MMP.&lt;br /&gt;&lt;br /&gt;Just a note - I wouldn&#039;t - the stack size is small for a reason.&lt;/div&gt;</description>
 <pubDate>Thu, 04 Nov 2004 10:30:51 +0100</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 10694 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to increase stack size of application</title>
 <link>http://www.newlc.com/topic-3523</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-3523&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-3523#comments</comments>
 <category domain="http://www.newlc.com/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Thu, 04 Nov 2004 06:54:29 +0100</pubDate>
 <dc:creator>chandra singh</dc:creator>
 <guid isPermaLink="false">4445 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
