<?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[Programmfehler]]></title><description><![CDATA[<p>Hallo,</p>
<p>Sobald ich mein Programm mit exit(EXIT_SUCCESS); beende erscheint folgender Fehler:</p>
<p>Project xxx.exe raised exception class EOSError with message System Error. code: 5 access error. Process stoped.</p>
<p>Was mache ich falsch?<br />
Ich verwende in dem Programm Threads, die ich aber voher eigentlich alle beende!</p>
<p>...mein Ziel ist es, dass ich mein Programm aus einem Thread durch ne Funktion beende und ich dachte mir, dass man es mit der exit(EXIT_SUCCESS); Funkion gut machen könnte...</p>
<p>MfG<br />
TheCaleb</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182798/programmfehler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 22:52:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182798.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 May 2007 12:52:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 13:06:43 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Sobald ich mein Programm mit exit(EXIT_SUCCESS); beende erscheint folgender Fehler:</p>
<p>Project xxx.exe raised exception class EOSError with message System Error. code: 5 access error. Process stoped.</p>
<p>Was mache ich falsch?<br />
Ich verwende in dem Programm Threads, die ich aber voher eigentlich alle beende!</p>
<p>...mein Ziel ist es, dass ich mein Programm aus einem Thread durch ne Funktion beende und ich dachte mir, dass man es mit der exit(EXIT_SUCCESS); Funkion gut machen könnte...</p>
<p>MfG<br />
TheCaleb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294441</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Tue, 29 May 2007 13:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 13:26:58 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>exit dürfte dafür nicht richtig sein, das ist noch eine alte c-Funktion.<br />
Verwende lieber Application-&gt;Terminate();</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294469</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 29 May 2007 13:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 17:06:43 GMT]]></title><description><![CDATA[<p>Hi, danke aber diese Funktion beendet das Programm nicht!<br />
Bzw das Fenster bleibt offen und die Funkiton TForm1::FormDestroy wird auch nicht aufgerufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294675</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294675</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Tue, 29 May 2007 17:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 17:31:21 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das kann ich mir nicht vorstellen. Es sei denn du fängst manuell irgendwo die WM_CLOSE-Messages von Windows ab oder verwendest die OnCloseQuery-Events eines Forms um CanClose auf false zu setzen.<br />
Siehe auch BCB-Hilfe zu Terminate(). Oder erstell mal ein leeres Projekt und setzt nur einen Button mit dieser Codezeile rein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294690</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 29 May 2007 17:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 17:44:53 GMT]]></title><description><![CDATA[<p>Hmmm du hast Recht, wenn ich das einfach nur bei einem Button mache, in einem neuen Projekt, klappt das aber sobald ich das aus nem Thread machen möchte klappt das nicht, leider!<br />
Und sowelche Funktionen, wie du ansprichst, nutze ich nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294697</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Tue, 29 May 2007 17:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Tue, 29 May 2007 23:08:58 GMT]]></title><description><![CDATA[<p>Gibt es vielleicht eine andere Möglichkeit das Programm, bzw den Thread durch eine Funktion zu schließen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294878</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Tue, 29 May 2007 23:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Wed, 30 May 2007 07:39:14 GMT]]></title><description><![CDATA[<p>Dann wäre das einfachste wohl, eine Botschaft aus dem Thread an das Hauptform zu senden.</p>
<p>Im Thread:</p>
<pre><code class="language-cpp">PostMessage(Form1-&gt;Handle, CM_REQUESTTERMINATION, 0, 0);
</code></pre>
<p>Im MainForm:</p>
<pre><code class="language-cpp">// .h
#define CM_REQUESTTERMINATION (WM_APP + 400)

// im public-Bereich des MainForms:
void __fastcall CMRequestTermination(TMessage Message);
BEGIN_MESSAGE_MAP
	VCL_MESSAGE_HANDLER(CM_REQUESTTERMINATION, TMessage, CMRequestTermination);
END_MESSAGE_MAP (TForm)

// .cpp
void __fastcall TForm1::CMRequestTermination(TMessage Message)
{
   // Eventuelle Aufräumarbeiten durchführen
   Close();

}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1294961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294961</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 30 May 2007 07:39:14 GMT</pubDate></item><item><title><![CDATA[Reply to Programmfehler on Wed, 30 May 2007 09:53:46 GMT]]></title><description><![CDATA[<p>Vielen Dank, das hat mir weiter geholfen!</p>
<p>MfG<br />
TheCaleb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1295037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1295037</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Wed, 30 May 2007 09:53:46 GMT</pubDate></item></channel></rss>