<?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[Finde Bug nicht wer hilft ?]]></title><description><![CDATA[<p>Hallo;</p>
<p>obwohl bei unterer schleife jedesmal das selbe getan wird, erhält man von der der funktion dirneu unterschiedliche ergebnisse nach jedem schritt.<br />
das programm dirneu erhält nur die unteren parameter und keine anderen.<br />
hat jemand eine ahnung woran das liegen kann. werden vielleicht die internen variablen von dirneu nicht gelöscht, sondern für den nächsten iterationsschritt weiter verwendet.</p>
<pre><code>#include &quot;dirneu.h&quot; 

for (int t=0;t&lt;=5;t++) {

dirneu(20,20,100,0.1,38,1000,3,5);

}
</code></pre>
<p>Gruss peter</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/268469/finde-bug-nicht-wer-hilft</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Sep 2026 20:09:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/268469.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jun 2010 15:50:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:50:11 GMT]]></title><description><![CDATA[<p>Hallo;</p>
<p>obwohl bei unterer schleife jedesmal das selbe getan wird, erhält man von der der funktion dirneu unterschiedliche ergebnisse nach jedem schritt.<br />
das programm dirneu erhält nur die unteren parameter und keine anderen.<br />
hat jemand eine ahnung woran das liegen kann. werden vielleicht die internen variablen von dirneu nicht gelöscht, sondern für den nächsten iterationsschritt weiter verwendet.</p>
<pre><code>#include &quot;dirneu.h&quot; 

for (int t=0;t&lt;=5;t++) {

dirneu(20,20,100,0.1,38,1000,3,5);

}
</code></pre>
<p>Gruss peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909559</guid><dc:creator><![CDATA[PeterFox]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:51:22 GMT]]></title><description><![CDATA[<p>wie wäre es mit der implementierung von dirneu?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909560</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:51:22 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:53:55 GMT]]></title><description><![CDATA[<p>dirneu.h ist ungefähr 600 zeilen lang. das will ich hier niemanden antun.</p>
<p>Gruss Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909561</guid><dc:creator><![CDATA[PeterFox]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:56:27 GMT]]></title><description><![CDATA[<p>Dann musst du dir wohl selbst angucken was in dirneu passiert.<br />
Oder sollen wir jetzt anfangen zu raten?</p>
<p>Mein 1.Tipp ist, dass dirneu vom Wetter abhängig ist und sich somit immer ein wneig anders verhält.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909564</guid><dc:creator><![CDATA[brotbernd]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:56:29 GMT]]></title><description><![CDATA[<p>Hallo Peter,</p>
<p>aus der Schilderung deiner Problematik schließe ich ohne Code-Kenntnis auf die Tatsache das dein Code nicht <strong><a href="http://en.wikipedia.org/wiki/Reentrant_%28subroutine%29" rel="nofollow">Reentrant</a></strong> ist.</p>
<p>Einer auf der wiki-Seite aufgeführten Punkte tritt in deinem Code auf:</p>
<blockquote>
<p>* Must hold no static (or global) non-constant data.<br />
* Must not return the address to static (or global) non-constant data.<br />
* Must work only on the data provided to it by the caller.<br />
* Must not rely on locks to singleton resources.<br />
* Must not modify its own code.[1] (unless executing in its own unique thread storage)<br />
* Must not call non-reentrant computer programs or routines.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1909565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909565</guid><dc:creator><![CDATA[nurf]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:56:29 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:57:18 GMT]]></title><description><![CDATA[<p>Wird wohl das übliche sein: Globale Variablen (static ist in dieser Hinsicht auch global) oder undefiniertes Verhalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909567</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 15:59:09 GMT]]></title><description><![CDATA[<p>ich habe gerade gesehen das ich in dirneu mir speicher reserviere diesen dann aber<br />
NICHT per delete freigeben. kann dies der fehler seien?!</p>
<p>hier die stelle aus dirneu.h</p>
<p>[/code]</p>
<p>vector&lt;VectorType&gt; *mem1;<br />
mem1=new vector&lt;VectorType&gt;;<br />
vector&lt;VectorType&gt; *mem2;<br />
mem2=new vector&lt;VectorType&gt;;<br />
vector&lt;VectorType&gt; *mem3;<br />
mem3=new vector&lt;VectorType&gt;;</p>
<p>[code]</p>
<p>Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909570</guid><dc:creator><![CDATA[PeterFox]]></dc:creator><pubDate>Wed, 09 Jun 2010 15:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 16:02:36 GMT]]></title><description><![CDATA[<p>PeterFox schrieb:</p>
<blockquote>
<p>ich habe gerade gesehen das ich in dirneu mir speicher reserviere diesen dann aber<br />
NICHT per delete freigeben. kann dies der fehler seien?!</p>
</blockquote>
<p>Eigentlich nicht. Aber schon die Idee von einem Pointer auf vector lässt mir Schwindeln. Der Code ist offensichtlich ziemlicher Mist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909577</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:02:36 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 16:03:25 GMT]]></title><description><![CDATA[<p>Es ist wohl echt aus der Mode geworden selbst iniative zu zeigen und Testfälle zu erstellen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909578</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 16:03:31 GMT]]></title><description><![CDATA[<p>ja das war der Fehler, zeiger per delete gelöscht und alles ist super ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>thx</p>
<p>Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909579</guid><dc:creator><![CDATA[PeterFox]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:03:31 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 16:11:50 GMT]]></title><description><![CDATA[<p>Gibt es eigentlich einen Grund, wieso du hier Zeiger mit manueller Speicherverwaltung benutzen musst? Ich würde darauf so oft wie möglich verzichten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909587</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to Finde Bug nicht wer hilft ? on Wed, 09 Jun 2010 16:19:41 GMT]]></title><description><![CDATA[<p>PeterFox schrieb:</p>
<blockquote>
<p>ja das war der Fehler, zeiger per delete gelöscht und alles ist super ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>thx</p>
<p>Peter</p>
</blockquote>
<p>das kann gar nicht der fehler gewesen sein - aber wie schon von SeppJ bemerkt wurde, scheint der Code wohl nicht wirklich was zu taugen...</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909597</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:19:41 GMT</pubDate></item></channel></rss>