<?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[Remove Control]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich habe in meiner Applikation ein Panel, das ich zur Laufzeit mit TCharts fülle. Zum erstellen der TCharts gehe ich folgendermaßen vor:</p>
<pre><code>TChart *chart = new TChart(panel);
panel-&gt;InsertControl(chart);
</code></pre>
<p>Bevor die Charts erstellt werden, sollen die alten gelöscht werden, und da hab ich Probleme:</p>
<pre><code>int count = panel-&gt;ControlCount;
for(int i = 0; i &lt; count; i++)
{
  panel-&gt;Controls[0]-&gt;Free();
}
</code></pre>
<p>Mit dieser Routine bekomme ich manchmal eine Zugriffsverletzung...</p>
<pre><code>int count = panel_-&gt;ControlCount;
for(int i = 0; i &lt; count; i++)
{
  panel_-&gt;RemoveControl(panel_-&gt;Controls[0]);
}
</code></pre>
<p>Wenn ich das ca. 30 mal auführe, dann bekomme ich EOutOfResources...</p>
<p>Vielleicht kann mir jemand helfen...<br />
Danke Wilfried</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178341/remove-control</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 08:50:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178341.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Apr 2007 14:18:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove Control on Tue, 10 Apr 2007 14:18:43 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich habe in meiner Applikation ein Panel, das ich zur Laufzeit mit TCharts fülle. Zum erstellen der TCharts gehe ich folgendermaßen vor:</p>
<pre><code>TChart *chart = new TChart(panel);
panel-&gt;InsertControl(chart);
</code></pre>
<p>Bevor die Charts erstellt werden, sollen die alten gelöscht werden, und da hab ich Probleme:</p>
<pre><code>int count = panel-&gt;ControlCount;
for(int i = 0; i &lt; count; i++)
{
  panel-&gt;Controls[0]-&gt;Free();
}
</code></pre>
<p>Mit dieser Routine bekomme ich manchmal eine Zugriffsverletzung...</p>
<pre><code>int count = panel_-&gt;ControlCount;
for(int i = 0; i &lt; count; i++)
{
  panel_-&gt;RemoveControl(panel_-&gt;Controls[0]);
}
</code></pre>
<p>Wenn ich das ca. 30 mal auführe, dann bekomme ich EOutOfResources...</p>
<p>Vielleicht kann mir jemand helfen...<br />
Danke Wilfried</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1263024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1263024</guid><dc:creator><![CDATA[hafwil]]></dc:creator><pubDate>Tue, 10 Apr 2007 14:18:43 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Control on Tue, 10 Apr 2007 19:21:13 GMT]]></title><description><![CDATA[<p>InsertControl, Free und RemoveControl sollten allesamt nicht verwendet werden, Begründung steht jeweils in der Hilfe.<br />
Stattdessen sind nur new/delete sowie das Setzen der <em>Parent</em>-Property angesagt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1263270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1263270</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 10 Apr 2007 19:21:13 GMT</pubDate></item></channel></rss>