<?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[Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result;]]></title><description><![CDATA[<p>Hallo.<br />
Erstmal entschuldigung, das ich im falschen forum poste. Aber im BCB forum kann ich nicht posten, da läds die buttons Absenden &amp; Vorschau nicht. Ich bitte euch diesen Thread zu verschieben.</p>
<p>Ich habe ein rießiges Problem:<br />
Mein Programm greift über die MYSQL LIB auf eine SQL Datenbank zu.<br />
Das klappt auch...</p>
<p>Allerdings tritt immer wieder eine Zugriffsverletzung beim ausführen der Zeile &quot;delete result;&quot; statt.<br />
Allerdings nicht immer sondern immer mal wieder (ich konnte kein muster erkennen).<br />
Der Fehlertext lautet:<br />
&quot;access violation at address 011943BB in module 'BORLNDMM.DLL'. Read of Address 01E45A74'&quot;</p>
<p>Mein code sieht so aus:</p>
<pre><code class="language-cpp">MYSQL_RES *result;

...

result = mysql_store_result(connection);

iNumFields = mysql_num_fields(result);
mfFields = mysql_fetch_fields(result);
...

delete result;
delete connection;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/122348/borland-builder-mysql-gt-fehler-beim-löschen-von-object-mysql_res-result</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 01:15:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/122348.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Oct 2005 01:57:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Wed, 05 Oct 2005 01:57:21 GMT]]></title><description><![CDATA[<p>Hallo.<br />
Erstmal entschuldigung, das ich im falschen forum poste. Aber im BCB forum kann ich nicht posten, da läds die buttons Absenden &amp; Vorschau nicht. Ich bitte euch diesen Thread zu verschieben.</p>
<p>Ich habe ein rießiges Problem:<br />
Mein Programm greift über die MYSQL LIB auf eine SQL Datenbank zu.<br />
Das klappt auch...</p>
<p>Allerdings tritt immer wieder eine Zugriffsverletzung beim ausführen der Zeile &quot;delete result;&quot; statt.<br />
Allerdings nicht immer sondern immer mal wieder (ich konnte kein muster erkennen).<br />
Der Fehlertext lautet:<br />
&quot;access violation at address 011943BB in module 'BORLNDMM.DLL'. Read of Address 01E45A74'&quot;</p>
<p>Mein code sieht so aus:</p>
<pre><code class="language-cpp">MYSQL_RES *result;

...

result = mysql_store_result(connection);

iNumFields = mysql_num_fields(result);
mfFields = mysql_fetch_fields(result);
...

delete result;
delete connection;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/885293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/885293</guid><dc:creator><![CDATA[FrankiBoy]]></dc:creator><pubDate>Wed, 05 Oct 2005 01:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Wed, 05 Oct 2005 06:18:04 GMT]]></title><description><![CDATA[<p>ich hab zwar keine Ahnung von Borland C++^^ aber wenn das so seh: darfst du das Objekt einfach löschen? Sieht so aus als würde es an andere Stelle gelöscht werden und beim zweiten mal gibts dann den Fehler ... . Is jetzt wie gesagt einfach mal geraten ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/885313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/885313</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 05 Oct 2005 06:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Wed, 05 Oct 2005 12:41:53 GMT]]></title><description><![CDATA[<p>Ich denk mal es ist auch kein builder spezifisches problem.</p>
<p>Das dachte ich mir auch, dass es deher kommt, das das objekt vorher gelöscht wird.<br />
Das Problem ist, ich kann ja nicht prüfen, ob das objekt noch besteht.</p>
<p>Wenn ich folgendes mache tritt der fehler trotzdem auf.</p>
<pre><code class="language-cpp">if (result != NULL) {delete result; result = NULL);
</code></pre>
<p>wenn ich das &quot;delete result;&quot; einfach weg lass steigt der Speicherverbrauch...da kann man im taskmanager richtig zuschauen.</p>
<p>n try ... catch block hat auch nix geholfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/885649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/885649</guid><dc:creator><![CDATA[FrankiBoy]]></dc:creator><pubDate>Wed, 05 Oct 2005 12:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Thu, 06 Oct 2005 13:58:38 GMT]]></title><description><![CDATA[<p>Kann den Beitrag bitte jemand ins BCB forum verschieben ? Der fehler tritt schliesslich in einer bcb dll auf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/886462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/886462</guid><dc:creator><![CDATA[FrankiBoy]]></dc:creator><pubDate>Thu, 06 Oct 2005 13:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Sat, 08 Oct 2005 17:16:04 GMT]]></title><description><![CDATA[<p>Gibt's heir keine Moderatoren ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/887850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/887850</guid><dc:creator><![CDATA[FrankiBoy]]></dc:creator><pubDate>Sat, 08 Oct 2005 17:16:04 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Sat, 08 Oct 2005 18:00:59 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=275" rel="nofollow">Unix-Tom</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/887888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/887888</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 08 Oct 2005 18:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Sat, 08 Oct 2005 18:21:04 GMT]]></title><description><![CDATA[<p>FrankiBoy schrieb:</p>
<blockquote>
<p>Ich denk mal es ist auch kein builder spezifisches problem.<br />
[...]<br />
Kann den Beitrag bitte jemand ins BCB forum verschieben ?</p>
</blockquote>
<p>Was denn nun?</p>
<blockquote>
<p>Der fehler tritt schliesslich in einer bcb dll auf.</p>
</blockquote>
<p>Ja logisch, schliesslich erstellst du dein Programm mit dem BCB und verwendest die dort mitgelieferten Speicherverwaltungsroutinen. Das heisst aber immer noch nicht, dass das ein Borland-spezifisches Problem ist.</p>
<p>Ausserdem ist dein Code-Ausschnitt offenbar unvollständig. Wo reservierst du denn den Speicher, den du mit delete wieder freigeben willst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/887909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/887909</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 08 Oct 2005 18:21:04 GMT</pubDate></item><item><title><![CDATA[Reply to Borland Builder: MySQL -&amp;gt; Fehler beim löschen von Object MYSQL_RES *result; on Sun, 09 Oct 2005 11:35:09 GMT]]></title><description><![CDATA[<p>result sollst du nicht mit delete löschen.<br />
result ist ja ein Zeiger auf ein Ergebnisarray, das von der MySQL-Lib verwaltet wird. Um ein result wieder frei zu geben, gibts die Funktion mysql_free_result(result);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/888097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/888097</guid><dc:creator><![CDATA[-**xXx**-]]></dc:creator><pubDate>Sun, 09 Oct 2005 11:35:09 GMT</pubDate></item></channel></rss>