<?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[Löschen des Mutexes funktioniert nicht]]></title><description><![CDATA[<pre><code class="language-cpp">HANDLE a;
	HANDLE b;
	char ab[500];
	a = CreateMutex(NULL, FALSE, &quot;Hallo&quot;);
    if(a == INVALID_HANDLE_VALUE) {
		MessageBox(NULL, &quot;a&quot;, 0, 0);
        return;
    }
	else if(GetLastError() == ERROR_ALREADY_EXISTS) {
		MessageBox(NULL, &quot;b&quot;, 0, 0);
		a=OpenMutex(MUTEX_ALL_ACCESS, TRUE, &quot;Hallo&quot;);
		sprintf(ab,&quot;%d&quot;,GetLastError());
		if(a==NULL)MessageBox(NULL,ab,0,0);
		else if(a==ERROR_FILE_NOT_FOUND)MessageBox(NULL,&quot;df&quot;,0,0);
		sprintf(ab,&quot;%d&quot;,GetLastError());
		if(!ReleaseMutex(a))MessageBox(NULL,ab,0,0);
		CloseHandle(a);
        //return;
    }
</code></pre>
<p>Das Mutex Hallo existiert und bei Openmutex wird auch kein Fehler ausgegeben, aber trotzdem kann ich das mutex nicht löschen...<br />
Das ganze soll eine Art von Kommunikationen zwischen Programmen via 'globalen Werten' darstellen..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199961/löschen-des-mutexes-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 17:10:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199961.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Dec 2007 00:54:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Löschen des Mutexes funktioniert nicht on Sun, 09 Dec 2007 00:54:12 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HANDLE a;
	HANDLE b;
	char ab[500];
	a = CreateMutex(NULL, FALSE, &quot;Hallo&quot;);
    if(a == INVALID_HANDLE_VALUE) {
		MessageBox(NULL, &quot;a&quot;, 0, 0);
        return;
    }
	else if(GetLastError() == ERROR_ALREADY_EXISTS) {
		MessageBox(NULL, &quot;b&quot;, 0, 0);
		a=OpenMutex(MUTEX_ALL_ACCESS, TRUE, &quot;Hallo&quot;);
		sprintf(ab,&quot;%d&quot;,GetLastError());
		if(a==NULL)MessageBox(NULL,ab,0,0);
		else if(a==ERROR_FILE_NOT_FOUND)MessageBox(NULL,&quot;df&quot;,0,0);
		sprintf(ab,&quot;%d&quot;,GetLastError());
		if(!ReleaseMutex(a))MessageBox(NULL,ab,0,0);
		CloseHandle(a);
        //return;
    }
</code></pre>
<p>Das Mutex Hallo existiert und bei Openmutex wird auch kein Fehler ausgegeben, aber trotzdem kann ich das mutex nicht löschen...<br />
Das ganze soll eine Art von Kommunikationen zwischen Programmen via 'globalen Werten' darstellen..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417381</guid><dc:creator><![CDATA[dern00b]]></dc:creator><pubDate>Sun, 09 Dec 2007 00:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to Löschen des Mutexes funktioniert nicht on Sun, 09 Dec 2007 18:15:18 GMT]]></title><description><![CDATA[<p>Hat keiner eine Idee?<br />
Releasemutex? Warum funktioniert es nicht? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417732</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417732</guid><dc:creator><![CDATA[Homie von dern00b]]></dc:creator><pubDate>Sun, 09 Dec 2007 18:15:18 GMT</pubDate></item><item><title><![CDATA[Reply to Löschen des Mutexes funktioniert nicht on Sun, 09 Dec 2007 18:24:01 GMT]]></title><description><![CDATA[<p>Du bekommst doch mit CreateMutex ein Mutex Handle, wenn der Mutex existiert. Warum machst Du jetzt noch einmal OpemMutex? Du müsstest also einmal CloseHandle für das OpenMutext und einmal für CreateMutex durchführen.</p>
<p>Aber lass OpenMutext einfach weg. ReleaseMutext hat nichts mit dem &quot;löschen&quot; des Mutex zu tun. Nur CloseHandle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417738</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 09 Dec 2007 18:24:01 GMT</pubDate></item></channel></rss>