<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Stackgröße einstellen]]></title><description><![CDATA[<p>Hallo,<br />
kann mir jemand sagen, wie man die Stackgröße einstellt, des Threads, der<br />
mit meinem Programm, einer dialogfeldbasierenden Anwendung, gestartet wird.</p>
<p>Vielen Dank für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197403/stackgröße-einstellen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 16:09:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197403.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Nov 2007 07:15:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 07:15:42 GMT]]></title><description><![CDATA[<p>Hallo,<br />
kann mir jemand sagen, wie man die Stackgröße einstellt, des Threads, der<br />
mit meinem Programm, einer dialogfeldbasierenden Anwendung, gestartet wird.</p>
<p>Vielen Dank für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400705</guid><dc:creator><![CDATA[MCGH]]></dc:creator><pubDate>Sat, 10 Nov 2007 07:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 11:35:52 GMT]]></title><description><![CDATA[<p>Es ist eine Linker Option.<br />
Unter Projekt Setting -&gt; Linker -&gt; System</p>
<p>Aber warum möchtest Du das?<br />
Zu große Objekte gehören nicht auf den Stack.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400795</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 10 Nov 2007 11:35:52 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 12:06:30 GMT]]></title><description><![CDATA[<p>Ich möchte den Stack verkleinern, weil ich der Meinung bin so Arbeitsspeicher zu sparen.<br />
Vielen Dank für deine Hilfe!<br />
Gruß MCGH.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400829</guid><dc:creator><![CDATA[MCGH]]></dc:creator><pubDate>Sat, 10 Nov 2007 12:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 13:52:34 GMT]]></title><description><![CDATA[<p>Du sparst damit keinen Arbeitsspeicher. Dem Stack wird nur ein Teil realer Speicher zugewiesen. Erst wenn der Stack wächst wird auch weiter Speciher benötigt.</p>
<p>Das kannst Du Dir sparen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400891</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 10 Nov 2007 13:52:34 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 14:12:29 GMT]]></title><description><![CDATA[<p>Man kann sich dadurch schon Speicher sparen! Es ist aber oft etwas gefährlich dies zu tun! Man muss schon zielich sicher sein, dass man keine Rekursionen oder grosse Lokale Variablen hat!<br />
Wenn man z.B. sehr viele Threads erzeugt, dann macht es möglicherweise Sinn die Stack-Size zu verringern, da man sonst max. ca. 1000 Threas erzeugen kann (was IMHO natürlich auch keinen Sinn macht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> ).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400904</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 10 Nov 2007 14:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sat, 10 Nov 2007 22:54:42 GMT]]></title><description><![CDATA[<p>Hallo MCGH,</p>
<p>das kann man schaffen, da gibt es ja noch mehr Katastrophen -Schalter</p>
<p>#pragma stacksize 4711</p>
<p>#pragma warning (push)<br />
#pragma warning( disable:6001 )</p>
<p>puts(&quot;kein stack kein warning, alles wird gut&quot;);</p>
<p>#pragma warning (pop)</p>
<p>grüße<br />
Karsten Schulz <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /><br />
(wem man hier alles trifft^^)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401170</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 10 Nov 2007 22:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sun, 11 Nov 2007 08:08:26 GMT]]></title><description><![CDATA[<p>Was soll dieser Quatsch es gibt kein pragma stacksize!</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/d9x1s805(vs.71).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/d9x1s805(vs.71).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401215</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 11 Nov 2007 08:08:26 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sun, 11 Nov 2007 08:56:40 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>qwatsch ist relativ, beim GNU Compiler existiert das Pragama, bei VS<br />
nicht, das habe ich glatt mal ausprobiert.</p>
<p>Der Körper iteriert bis eins vor absturz. Dann einfach #paragma stack<br />
auf 1 gestellt, so müßte ein Ausnameende vorkommen, ist zum Glück anders.</p>
<pre><code class="language-cpp">#define MAXITERATION 129518
#pragma stacksize 1

int nochsofleissig(void)
{
  static int it(0);
  while((++it &lt;  MAXITERATION) &amp;&amp; (6*6 == 36))
    return nochsofleissig();
}

int main(void)
{    
    nochsofleissig();

    return 0;
}
</code></pre>
<p>grüße<br />
Karsten Schulz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401224</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 11 Nov 2007 08:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sun, 11 Nov 2007 09:30:02 GMT]]></title><description><![CDATA[<p>MFC != gnu...<br />
=&gt; Quatsch...</p>
<p>Aber wir brauchen hier nicht so weiterzumachen wie in den Newsgroups... aber auf das wird es mit Dir wohl rauslaufen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401230</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 11 Nov 2007 09:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Stackgröße einstellen on Sun, 11 Nov 2007 16:04:10 GMT]]></title><description><![CDATA[<p>Wenn man mehrere Threads anlegt kann man beim Erstellen des/der Threads angeben wie gross der Stack werden soll.<br />
Wenn man nur einen (oder wenige) Thread(s) hat kann man getrost darauf verzichten weil es dann vollkommen egal ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401440</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sun, 11 Nov 2007 16:04:10 GMT</pubDate></item></channel></rss>