<?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[Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ??]]></title><description><![CDATA[<p>beim Ausführen des folgenden Sources kommt nachdem die Message-Box erschien in der stand &quot;Das war Nummer : 3&quot; ein EAccess-Violation-Error und das Programm bricht ab.<br />
Ich nutze natürlich Indy 9 welches auch korrekt funktioniert.<br />
Wenn ich hingegen die For-Schleife gegen 5 Mal den einzelnen Befehl ersetze funktioniert es tadellos.</p>
<pre><code class="language-cpp">TIdHTTP *http[4];

for(int i=0; i&lt;5; i++)
{
http[i]=new TIdHTTP(this);
if (http[i]-&gt;Host==&quot;&quot;) ShowMessage(&quot;Das war Nummer : &quot;+IntToStr(i));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/89325/idhttp-gt-host-in-for-schleife-eaccessviolation</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 17:08:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/89325.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Oct 2004 17:23:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:23:56 GMT]]></title><description><![CDATA[<p>beim Ausführen des folgenden Sources kommt nachdem die Message-Box erschien in der stand &quot;Das war Nummer : 3&quot; ein EAccess-Violation-Error und das Programm bricht ab.<br />
Ich nutze natürlich Indy 9 welches auch korrekt funktioniert.<br />
Wenn ich hingegen die For-Schleife gegen 5 Mal den einzelnen Befehl ersetze funktioniert es tadellos.</p>
<pre><code class="language-cpp">TIdHTTP *http[4];

for(int i=0; i&lt;5; i++)
{
http[i]=new TIdHTTP(this);
if (http[i]-&gt;Host==&quot;&quot;) ShowMessage(&quot;Das war Nummer : &quot;+IntToStr(i));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/631851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631851</guid><dc:creator><![CDATA[Lu Shang]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:23:56 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:28:44 GMT]]></title><description><![CDATA[<p>Lu Shang schrieb:</p>
<blockquote>
<p>TIdHTTP *http[4];</p>
</blockquote>
<p>Das sind nur vier. 0 bis 3.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/631853</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631853</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:30:08 GMT]]></title><description><![CDATA[<p>Du willst 4, du kriegst 4 ?!?!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/631855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631855</guid><dc:creator><![CDATA[nirsaja]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:30:08 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:31:14 GMT]]></title><description><![CDATA[<p>Er will 5 und kriegt 4.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/631856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631856</guid><dc:creator><![CDATA[aaaabyx]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:35:47 GMT]]></title><description><![CDATA[<p>Er kriegt aber zwangsläufig nur 4, weil er nur 4 anfordert. Oder kriegt man</p>
<pre><code class="language-cpp">TIdHTTP *http[1];
</code></pre>
<p>zwei<br />
und mit</p>
<pre><code class="language-cpp">TIdHTTP *http[0];
</code></pre>
<p>einen??? Eben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/631860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631860</guid><dc:creator><![CDATA[nirsaja]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:37:48 GMT]]></title><description><![CDATA[<p>Nein aber in der Schleife will er 5 und darum kriegt er ne AccesViolation.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/631862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631862</guid><dc:creator><![CDATA[aaaabyx]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 17:39:07 GMT]]></title><description><![CDATA[<p>Ok... so kann man es auch sagen. Im endefekt hat er warscheinlich einen kleinen Denkfehler im Index eines Arrays? <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/631864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/631864</guid><dc:creator><![CDATA[nirsaja]]></dc:creator><pubDate>Mon, 18 Oct 2004 17:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Idhttp-&amp;gt;Host in For-Schleife = EAccessViolation ?? on Mon, 18 Oct 2004 20:43:30 GMT]]></title><description><![CDATA[<p>OK danke sehr für die schnelle,kompetente Hilfe.<br />
Mein N00b-Buch hat nen neuen Eintrag nach der 'fehlerfreien Installation vonn Indy' bekommen <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/632022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/632022</guid><dc:creator><![CDATA[Lu Shang]]></dc:creator><pubDate>Mon, 18 Oct 2004 20:43:30 GMT</pubDate></item></channel></rss>