<?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[Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot;]]></title><description><![CDATA[<p>Wenn ich meine Programm ausführe bekomme ich die Fehlermeldung<br />
Thread angehalten Speicherort\programmname.exe: Fehler:access violation at0x307407: write of address 0x0</p>
<p>Wie kann ich verhindern, dass er auf die addresse 0x0 schreiben will?<br />
Ich denke ,dass das der Fehler ist</p>
<p>Ich verwende C++ mit dem Borland compiler</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/118664/probleme-mit-speicherverwaltung-quot-fehler-access-violation-quot</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 17:00:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/118664.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Aug 2005 05:25:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 05:25:55 GMT]]></title><description><![CDATA[<p>Wenn ich meine Programm ausführe bekomme ich die Fehlermeldung<br />
Thread angehalten Speicherort\programmname.exe: Fehler:access violation at0x307407: write of address 0x0</p>
<p>Wie kann ich verhindern, dass er auf die addresse 0x0 schreiben will?<br />
Ich denke ,dass das der Fehler ist</p>
<p>Ich verwende C++ mit dem Borland compiler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856586</guid><dc:creator><![CDATA[Tiny1984]]></dc:creator><pubDate>Tue, 23 Aug 2005 05:25:55 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 05:41:41 GMT]]></title><description><![CDATA[<p>Du hast anscheinend irgendwo einen Pointer der NULL ist. Wie sollen wir dir da helfen? Überprüf die Gültigkeit der Pointer mit if == NULL bevor du sie benutzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856588</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 23 Aug 2005 05:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 06:07:41 GMT]]></title><description><![CDATA[<p>c_nachname1= new char[15];<br />
if(c_nachname1 == NULL || c_nachna == NULL) cout &lt;&lt; &quot;Speicherfehler\n&quot;;<br />
else<br />
{<br />
c_vorname1= new char[15];<br />
if(c_vorname1 == NULL || c_vorna == NULL) cout &lt;&lt; &quot;Speicherfehler\n&quot;;<br />
else<br />
{</p>
<p>jetzt steht da immer &quot;Speicherfehler&quot;<br />
Wer hätte das gedacht!<br />
Leider bringt mich das nicht weiter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856591</guid><dc:creator><![CDATA[Tiny1984]]></dc:creator><pubDate>Tue, 23 Aug 2005 06:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 06:14:51 GMT]]></title><description><![CDATA[<p>Tiny1984 schrieb:</p>
<blockquote>
<p>Wer hätte das gedacht!<br />
Leider bringt mich das nicht weiter</p>
</blockquote>
<p>Natürlich bringt dich das weiter. Du musst jetzt rausfinden, warum c_nachna oder c_vorna dort Null sind. Hast du einen Debugger?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856593</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 23 Aug 2005 06:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 06:19:09 GMT]]></title><description><![CDATA[<p>Ja hab ich, aber entweder kann ich damit nicht umgehen oder er funktioniert nicht richtig!<br />
Immer bedenken ich lernen das gerade erst!</p>
<p>was ist den an der deklarierung<br />
char *c_vorna;<br />
char *c_nachna;</p>
<p>falsch<br />
oder muss ich was eingrenzen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856595</guid><dc:creator><![CDATA[Tiny1984]]></dc:creator><pubDate>Tue, 23 Aug 2005 06:19:09 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 06:27:38 GMT]]></title><description><![CDATA[<p>Tiny1984 schrieb:</p>
<blockquote>
<p>was ist den an der deklarierung<br />
char *c_vorna;<br />
char *c_nachna;</p>
<p>falsch</p>
</blockquote>
<p>Daran ist erstmal nichts &quot;falsch&quot;. Es kommt darauf an, was du damit machst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856599</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 23 Aug 2005 06:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 07:29:30 GMT]]></title><description><![CDATA[<p>Für c_nachname1 hast du zwar Speicher angefordert, aber für c_nachna hast du nichts reserviert. Kein Wunder das c_nachna noch NULL ist. Der gleiche Fall bei c_vorna.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/856622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856622</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 23 Aug 2005 07:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 09:30:50 GMT]]></title><description><![CDATA[<p>Hier einmal der &quot;kompltte&quot; Quellcode</p>
<pre><code class="language-cpp">#include &lt;conio.h&gt;
#include &lt;iostream.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;
#include &lt;math.h&gt;
#include &lt;stdlib.h&gt;
void main()
{

	char *c_vorname1;
	char *c_vorna;
	char *c_nachname1;
	char *c_nachna;
	char start='j';

   cout&lt;&lt;&quot;Moechten Sie einen Wert eingeben?:\n (j=Ja,n=Nein):&quot;;cin&gt;&gt;start;
   while (start=='j')
   {
   	//clrscr();
     	c_nachname1= new char[15];
   	if(c_nachname1 == NULL || c_nachna == NULL)cout &lt;&lt; &quot;Speicherfehler\n&quot;;
   	else
   	{
      	c_vorname1= new char[15];
         	if(c_vorname1 == NULL || c_vorna == NULL)  cout &lt;&lt; &quot;Speicherfehler\n&quot;;
         	else
           {        
	    cout &lt;&lt;&quot;\nVorname :&quot;;cin&gt;&gt;c_vorna;
             cout &lt;&lt;&quot;\nNachname:&quot;;cin&gt;&gt;c_nachna;
      		if ((strlen(c_vorna)&lt;15) || (strlen(c_nachna)&lt;15) )
      		{
		  strcpy(c_vorname1,c_vorna);
                    strcpy(c_nachname1,c_nachna);
   cout&lt;&lt;&quot;\n\nDer Name lautet: &quot;&lt;&lt;c_vorname1&lt;&lt;&quot; &quot;&lt;&lt;c_nachname1&lt;&lt;&quot;\nLaenge:&quot;&lt;&lt;(1+(strlen(c_vorna))+(strlen(c_nachna)));
   		getch();

      cout&lt;&lt;&quot;\n\nMoechten Sie einen weiteren Wert eingeben?:&quot;;cin&gt;&gt;start;
      			}
      			else

      			{
         			clrscr();
      	cout&lt;&lt;&quot;Mehr als 15 Zeichen sind im Vornamen nicht erlaubt!&quot;;
            	  	}
         		}
          }
    }
    clrscr();
    cout&lt;&lt;&quot;Das Programm wurde beendet!&quot;;
    getch();
}
</code></pre>
<p>Sorry für das durcheinander</p>
<p><strong>&lt;edit&gt;Bitte Code-Tags verwenden!&lt;/edit&gt;</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/856623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856623</guid><dc:creator><![CDATA[Tiny1984]]></dc:creator><pubDate>Tue, 23 Aug 2005 09:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Tue, 23 Aug 2005 10:12:44 GMT]]></title><description><![CDATA[<p>Da du in C++ programmierst, verwende lieber gleich std::string, anstatt char *, also z.B.</p>
<pre><code class="language-cpp">// C++ Header ohne .h benutzen!!!
#include &lt;string&gt;
#include &lt;iostream&gt;

// kanst aber auch &quot;using namespace std;&quot; schreiben
using std::string;
using std::cout;
using std::cin;

main()
{
   string sVorname, sNachname;

   cout &lt;&lt; &quot;Vorname: &quot;;
   cin &gt;&gt; sVorname;

   cout &lt;&lt; &quot;Nachname: &quot;;
   cin &gt;&gt; sNachname;

   cout &lt;&lt; &quot;Du heißt &quot; &lt;&lt; sVorname &lt;&lt; &quot; &quot; &lt;&lt; sNachname;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/856745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/856745</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Tue, 23 Aug 2005 10:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Wed, 24 Aug 2005 05:32:47 GMT]]></title><description><![CDATA[<p>Guten Morgen</p>
<p>warum bekomme ich eine Fehlermeldung wenn ich</p>
<p>std::string Name;</p>
<p>verwende und die Header Datei</p>
<p>#include &lt;string.h&gt; //Fehlermeldung</p>
<p>includiere anstatt</p>
<p>#include &lt;string&gt; //keine Fehlermeldung</p>
<p>Woran liegt das?<br />
Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/857272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/857272</guid><dc:creator><![CDATA[Tiny1984]]></dc:creator><pubDate>Wed, 24 Aug 2005 05:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Speicherverwaltung &amp;quot;Fehler: access violation&amp;quot; on Wed, 24 Aug 2005 07:00:43 GMT]]></title><description><![CDATA[<p>Hallo !<br />
&lt;string.h&gt; ist eine C-Header-Datei, was du brauchst, sind C++-Header(-Dateien). C++-Standard-Header haben üblicherweise keine Dateinamenserweiterung/-endung.<br />
Hoffentlich hilft dir das.</p>
<p>Mit freundlichen Grüßen</p>
<p>Hallo-C++</p>
]]></description><link>https://www.c-plusplus.net/forum/post/857298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/857298</guid><dc:creator><![CDATA[Hallo-C++]]></dc:creator><pubDate>Wed, 24 Aug 2005 07:00:43 GMT</pubDate></item></channel></rss>