<?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[Speicherfreigabe]]></title><description><![CDATA[<p>hallo,<br />
wo gibt man den speicher wenn er bis zum ende benutzt wird, wieder frei?<br />
also wenn ich mit dem operator new speicher reserviere muss ich diesen ja auch wieder freigeben. wenn meine anwendung diesen bis zum beenden braucht, wo gebe ich dann den speicher wieder frei? das event OnClose scheint keine gute lösung zu sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> weil ich es schon erlebt habe das eine schutzverletzung auftrat die mit der speicherfreigabe zu tun hat, diese ich im OnClose event auslöse.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/99475/speicherfreigabe</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 04:33:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/99475.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Jan 2005 17:03:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 17:03:15 GMT]]></title><description><![CDATA[<p>hallo,<br />
wo gibt man den speicher wenn er bis zum ende benutzt wird, wieder frei?<br />
also wenn ich mit dem operator new speicher reserviere muss ich diesen ja auch wieder freigeben. wenn meine anwendung diesen bis zum beenden braucht, wo gebe ich dann den speicher wieder frei? das event OnClose scheint keine gute lösung zu sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> weil ich es schon erlebt habe das eine schutzverletzung auftrat die mit der speicherfreigabe zu tun hat, diese ich im OnClose event auslöse.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709039</guid><dc:creator><![CDATA[TheBorlander]]></dc:creator><pubDate>Fri, 28 Jan 2005 17:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 17:38:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<pre><code class="language-cpp">Form1-&gt;OnDestroy
</code></pre>
<p>ist glaube ich, was Du suchst.</p>
<p>Freigabe des Speichers mit [cpp]Delete <em>Variable</em>[/cpp]</p>
<p>Gruß, Mouse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709065</guid><dc:creator><![CDATA[D*ngermouse]]></dc:creator><pubDate>Fri, 28 Jan 2005 17:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 17:56:26 GMT]]></title><description><![CDATA[<p><strong>d</strong>elete ;)...</p>
<p>OnDestroy hm aber das heisst ja frei übersetzt &quot;Zerstören&quot;.<br />
ich glaube dir durchaus das OnDestroy das richtige ist. kannst du mir aber noch den unterschied bzw. den vorteil gegenüber OnClose erklären? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709075</guid><dc:creator><![CDATA[TheBorlander]]></dc:creator><pubDate>Fri, 28 Jan 2005 17:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 18:10:07 GMT]]></title><description><![CDATA[<p><a href="http://web.archive.org/web/20040204034528/http://www.bcbdev.com/articles/suggest.htm#oncreate" rel="nofollow">Don't use OnCreate and OnDestroy, use C++ constructors and destructors instead</a></p>
<p>Was für Objekte willst du denn freigeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709087</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709087</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 28 Jan 2005 18:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 18:29:13 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p><a href="http://web.archive.org/web/20040204034528/http://www.bcbdev.com/articles/suggest.htm#oncreate" rel="nofollow">Don't use OnCreate and OnDestroy, use C++ constructors and destructors instead</a></p>
</blockquote>
<p>Klingt logisch.<br />
Mouse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709094</guid><dc:creator><![CDATA[D*ngermouse]]></dc:creator><pubDate>Fri, 28 Jan 2005 18:29:13 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherfreigabe on Fri, 28 Jan 2005 18:23:47 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>Was für Objekte willst du denn freigeben?</p>
</blockquote>
<p>TIniFile<br />
TStringList (5x)</p>
<p>vordere ich in OnCreate an und gebe ich nun bei OnDestroy wieder frei.<br />
ist das nun nicht gut? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709100</guid><dc:creator><![CDATA[TheBorlander]]></dc:creator><pubDate>Fri, 28 Jan 2005 18:23:47 GMT</pubDate></item></channel></rss>