<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx</link><description>I know. It's been nearly a year since I posted anything. Ouch. Bad John. What inspires a new post? Virtual memory. One of my favorite subjects, but unfortunately, also a common stumbling block on Windows CE, especially on feature-rich Pocket PCs. I've</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#520479</link><pubDate>Tue, 31 Jan 2006 15:25:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:520479</guid><dc:creator>Doug B</dc:creator><description>This is stunning! I've been hearing of products having trouble with app installs and driver loads on Windows Mobile 5. It was looking like a Merlin redux. &lt;BR&gt;&lt;BR&gt;I can't imagine anyone actually depending on the 1 Meg stack this soon after the release VS 05. I'd change the default back to 64 K in a service pack asap. The only worry would be MFC and ATL apps. Perhaps the new port needs the larger stack. That'd take a bit of testing to see if they deal with in a 64 K stack. &lt;BR&gt;&lt;BR&gt;Thanks for this info. &lt;BR&gt;&lt;BR&gt;Doug</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#527290</link><pubDate>Wed, 08 Feb 2006 08:04:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:527290</guid><dc:creator>B. Lee</dc:creator><description>Welcome back, John.&lt;br /&gt;To answer your question, I work on applications that use lots of threads but the default 64K is good enough. &lt;br /&gt;&lt;br /&gt;After reading your post, I've checked the 'Stack Reserved Size' on my projets.&lt;br /&gt;It was just a quick test, so I'm now sure how correct(?) this may be&lt;br /&gt;but here are my observations.&lt;br /&gt;&lt;br /&gt;1. Created a Smart Device project with hello window code for WM5.0 in VS2005 --&amp;gt; Size was 0&lt;br /&gt;So where does the default 1MB come from?&lt;br /&gt;&lt;br /&gt;2. New Project in eVC 4.0 with hello window code ---&amp;gt; Size was 0x10000 == 65536&lt;br /&gt;If I hit help on the settings menu a little popup shows that default stack size is 1MB. But it has the value 0x10000 entered by default. So how does it relate?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#527346</link><pubDate>Wed, 08 Feb 2006 09:43:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:527346</guid><dc:creator>B. Lee</dc:creator><description>Here is a typo fix.&lt;br /&gt;I'm 'now' sure how correct(?) this may be --&amp;gt; 'now' should be a 'not'</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#534933</link><pubDate>Sun, 19 Feb 2006 08:39:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:534933</guid><dc:creator> John Eldridge</dc:creator><description>Thanks for the feedback, B. &amp;nbsp;Yes, eVC4 did set the size to 64k explicitly. For VS2005, a value of zero means that the linker's default (1MB) will be used. I notified the VS team and they are looking into it.</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#534954</link><pubDate>Sun, 19 Feb 2006 12:22:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:534954</guid><dc:creator>RoboForm</dc:creator><description>Good!</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#541410</link><pubDate>Wed, 01 Mar 2006 21:15:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:541410</guid><dc:creator>Richard Plante</dc:creator><description>I'm having a program that reads a XML file using CubeWerx open source (www.cubewerx.com). Reading a small XML file (let say ~100K) works perfectly and does not generate any problem. Reading a huge XML file (currently trying 2.5Mb) is causing a stack overflow.
&lt;br&gt;
&lt;br&gt;Reading a XML file is done recursively in CubeWerx since you have to go deep enough to the rightmost leaf to read the full content of the file. The default stack size of my program is still 1Mb and everything in CubeWerx is done from the same thread. 
&lt;br&gt;
&lt;br&gt;My question is: how come that code works correctly on a Win32 program but not on a SmartDevice program? Under Win32, my stack size is also set to the default value 1Mb and reading a 2.5Mb XML file is not generating a stack overflow.</description></item><item><title>Visual Studio and Virtual Memory</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#564077</link><pubDate>Wed, 29 Mar 2006 19:45:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564077</guid><dc:creator>Windows Mobile Team Blog</dc:creator><description>Visual Studio reserves 1 MB of virtual memory for each of your app's threads by default.&amp;amp;amp;nbsp; This is...</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#564309</link><pubDate>Thu, 30 Mar 2006 00:26:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564309</guid><dc:creator>Kevin Moran</dc:creator><description>Is there any way to set this property for a c# smart device project?
&lt;br&gt;
&lt;br&gt;Kevin </description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#564383</link><pubDate>Thu, 30 Mar 2006 02:51:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564383</guid><dc:creator>Mike C.</dc:creator><description>Where do you find/set this value in Visual Studio 2005?</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#564406</link><pubDate>Thu, 30 Mar 2006 03:21:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564406</guid><dc:creator>kitlfirst</dc:creator><description>Mike C.,&lt;br&gt;&lt;br&gt;You can find it under Project | Properties. Then you should see the dialog box. The setting is under Configuration Properties | Linker | System.</description></item><item><title>re: Virtual Memory and Thread Stacks</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#565061</link><pubDate>Thu, 30 Mar 2006 20:36:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:565061</guid><dc:creator>Mike C.</dc:creator><description>Kitlfirst,&lt;br&gt;&lt;br&gt;When I go into Project | Properties in VS 2005, I get the properties tabbed window (alongside my source code tabbed windows). &amp;nbsp;There is no dialog box as such.&lt;br&gt;&lt;br&gt;Unfortunately, the project properties tabbed window doesn't have as many options at the VS 2003 dialog box has, as seen below:&lt;br&gt;&lt;br&gt;&amp;lt;img src=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://itracksolutions.com/imagedump/VS2005ProjProps.gif&amp;quot;&amp;gt;"&gt;http://itracksolutions.com/imagedump/VS2005ProjProps.gif&amp;quot;&amp;gt;&lt;/a&gt;</description></item><item><title>process stack size and threads | keyongtech</title><link>http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx#9365547</link><pubDate>Thu, 22 Jan 2009 12:36:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9365547</guid><dc:creator>process stack size and threads | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/3119782-process-stack-size-and-threads"&gt;http://www.keyongtech.com/3119782-process-stack-size-and-threads&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>