<?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[EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger)]]></title><description><![CDATA[<p>Hi,</p>
<p>ich erhalte folgende Fehlermeldung:</p>
<pre><code>&quot;Project Project1.exe raised exception class EOutOfResources with Message &quot;Unable to Insert Line&quot;.&quot;
</code></pre>
<p>kann mir da villeicht jemand helfen. Danke schonmal im voraus.</p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84650/eoutofresources-bei-tstrings-move-war-verzweifelter-anfänger</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 19:00:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84650.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Sep 2004 10:11:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 12:40:16 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich erhalte folgende Fehlermeldung:</p>
<pre><code>&quot;Project Project1.exe raised exception class EOutOfResources with Message &quot;Unable to Insert Line&quot;.&quot;
</code></pre>
<p>kann mir da villeicht jemand helfen. Danke schonmal im voraus.</p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596769</guid><dc:creator><![CDATA[Carpocalypse]]></dc:creator><pubDate>Wed, 01 Sep 2004 12:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 10:27:51 GMT]]></title><description><![CDATA[<p>Weißt du an welcher Stelle der Fehler auftritt? Schau's dir mal im Debugger an und wenn du die Stelle gefunden hast, dann postest du hier den Code.</p>
<p>EDIT: Und machst für uns die Stelle kenntlich <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/596778</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596778</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Wed, 01 Sep 2004 10:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 10:36:04 GMT]]></title><description><![CDATA[<pre><code>mov position;
mov zahl;
AnsiString Name;
int index=0;
int anzahl;
char *name;
int a=0;
anzahl=FileListBox1-&gt;Items-&gt;Capacity;
while (a&lt;anzahl)
{
while (index&lt;anzahl)
{
Name=FileListBox1-&gt;Items-&gt;operator [](index);
name=Name.c_str();
zahl.mov[index]=zahl_aus_string(name);
position.mov[index]=index;
//in dieser Zeile müßte der Fehler sein
[b]FileListBox1-&gt;Items-&gt;Move(position.mov[index],zahl.mov[index]);[/b]
index++;
ProgressBar1-&gt;Position++;
}
Sortieren(position.mov,anzahl);
Sortieren(zahl.mov,anzahl);
index=0;
a++;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/596791</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596791</guid><dc:creator><![CDATA[Carpocalypse]]></dc:creator><pubDate>Wed, 01 Sep 2004 10:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:04:11 GMT]]></title><description><![CDATA[<p>Du versuchst, einen Eintrag über das Ende der Liste hinaus zu verschieben. D.h. <em>zahl.mov[index]</em> ist vermutlich &gt;= Anzahl der Einträge in der ListBox, und das darf halt nicht sein.</p>
<p>Statt <em>Capacity</em> solltest du vielleicht mal <em>Count</em> verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596816</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:04:11 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:16:35 GMT]]></title><description><![CDATA[<p>@janson</p>
<p>das ist doch egal ob ich Capacity nehme oder Coount, die liefern mir bei den gleichen Wert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596831</guid><dc:creator><![CDATA[Carpocalypse]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:16:35 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:23:37 GMT]]></title><description><![CDATA[<p>BCB-Hilfe schrieb:</p>
<blockquote>
<p>Capacity kann gelesen werden, um die Anzahl der Objekte zu ermitteln, die in der Liste Platz finden, ohne daß weiterer Speicher reserviert werden muß.</p>
</blockquote>
<p>So viel dazu <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="😉"
    /> Also nimm Count.</p>
<p>P.S. Es heißt Jans<strong>e</strong>n (=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596843</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:23:37 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:28:59 GMT]]></title><description><![CDATA[<p>Carpocalypse schrieb:</p>
<blockquote>
<p>das ist doch egal ob ich Capacity nehme oder Coount</p>
</blockquote>
<p>Deshalb bietet das VCL-Objekt auch beide Eigenschaften an, und schmeisst nicht die eine, überflüssige, raus, gelle?</p>
<p>Carpocalypse schrieb:</p>
<blockquote>
<p>die liefern mir bei den gleichen Wert.</p>
</blockquote>
<p>Das muss aber nicht immer so sein. Lies einfach nochmals genau nach, was über &quot;Capacity&quot; und was über &quot;Count&quot; geschrieben wird in dre HIlfe.</p>
<p>Jansen schreibt das auch bestimmt nicht einfach aus juxx da hin oder weils egal ist. Man sollte also mind. ein bis zweimal die eigenen Entscheidungen überdenken, wenn jmd einem zu etwas anderem rät.</p>
<p>Ausserdem liesse sich die folgende Zeile:</p>
<pre><code class="language-cpp">Name=FileListBox1-&gt;Items-&gt;operator [](index);
</code></pre>
<p>so wohl lesbarer schreiben:</p>
<pre><code class="language-cpp">Name=FileListBox1-&gt;Items[index];
</code></pre>
<p>...</p>
<p>Und vielleicht steppst du einfach mal mit dem <a href="http://www.junix.ch/bcb/help/debug.html" rel="nofollow">Debugger</a> durch deine Schleife und beobachtest mal alle Indexwerte genaustens...</p>
<p>-junix</p>
<p>EDIT: Mist (o;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596850</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:30:28 GMT]]></title><description><![CDATA[<p>PM2k: Danke! <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>
<p>Für TStrings behauptet die Hilfe allerdings, dass <em>&quot;ein Lesezugriff auf Capacity den Wert der Eigenschaft Count zurück[gibt]&quot;</em>, deshalb ist der Einwand berechtigt. Aus demselben Grund hatte ich aber auch extra <strong>vielleicht</strong> geschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596853</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596853</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 11:54:34 GMT]]></title><description><![CDATA[<p>Im nächsten Satz der Hilfe steht aber auch:</p>
<blockquote>
<p>Nachkommen von TStrings können diese Eigenschaft überschreiben, damit die String-Liste Speicher für Elemente reservieren kann, die noch nicht in der Liste enthalten sind.</p>
</blockquote>
<p>Das kann sich also ändern. Selbst wenn es jetzt funktioniert, heißt das, dass es nach dem nächsten Update noch funktioniert. Und TStrings ist hierbei auch eine Ausnahme. In der Regel differieren die Werte von Capacity und Count.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596887</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 01 Sep 2004 11:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to EOutOfResources bei TStrings::Move (war: Verzweifelter anfänger) on Wed, 01 Sep 2004 12:42:21 GMT]]></title><description><![CDATA[<p>Genau wegen dieser Mehrdeutigkeit hab ich den Vorschlag ja (trotzdem) gemacht. <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>
<p>PS. Habe die Threadüberschrift jetzt nochmal korrigiert, nachdem ich dort verwirrenderweise T<strong>List</strong>::Move geschrieben hatte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/596935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/596935</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 01 Sep 2004 12:42:21 GMT</pubDate></item></channel></rss>