<?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[Problem mit TQuery Datenbank.. vieleicht auch TTreeView]]></title><description><![CDATA[<p>Also ich habe ein Problem *ziehmlich großes .. den ich habe keinerlei idee mehr für mögliche ursachen*</p>
<p>der Code ist</p>
<pre><code>try 
        {
        Query1-&gt;Close();
        Query1-&gt;SQL-&gt;Clear();
        Query1-&gt;SQL-&gt;Add(&quot;select distinct Interpret, Album from Data&quot;);//&quot;SELECT Album, Titel  FROM Data WHERE Interpret = 'Hanswerner'&quot;);
        Query1-&gt;Open();

        AnsiString Interpretabl;
        TTreeNode* Item;
        while(!Query1-&gt;Eof)
        {
                if((Interpretabl != Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString) &amp;&amp; (Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString != &quot;&quot;))
                {
                        Item = TreeView2-&gt;Items-&gt;Add(NULL, Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString);
                        Interpretabl = Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString;
                }
                if( Query1-&gt;FieldByName(&quot;Album&quot;)-&gt;AsString != &quot;&quot;)
                {
                        TTreeNode* Album = TreeView2-&gt;Items-&gt;AddChild(Item, Query1-&gt;FieldByName(&quot;Album&quot;)-&gt;AsString);
                }
                Query1-&gt;Next();
        }
        }
        catch(...)
        {
        Application-&gt;MessageBox(&quot;Error opening Database&quot;,NULL,NULL);
        }
</code></pre>
<p>Dabei sollen daten aus einem Tabel Daten ausgelesen werden und in einem Tree Darzustellen...<br />
Leider gibt es ab einer gewissen Datenbankgröße massive Probleme (sprich der catch fall trifft ein <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="😞"
    /> )<br />
ohne eigenen catch tritt der standart catch fall von Borland (Formcreate) ein</p>
<p>ich hoffe es kann mir jemand helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163455/problem-mit-tquery-datenbank-vieleicht-auch-ttreeview</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 03:49:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163455.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Oct 2006 19:31:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Sun, 29 Oct 2006 19:31:22 GMT]]></title><description><![CDATA[<p>Also ich habe ein Problem *ziehmlich großes .. den ich habe keinerlei idee mehr für mögliche ursachen*</p>
<p>der Code ist</p>
<pre><code>try 
        {
        Query1-&gt;Close();
        Query1-&gt;SQL-&gt;Clear();
        Query1-&gt;SQL-&gt;Add(&quot;select distinct Interpret, Album from Data&quot;);//&quot;SELECT Album, Titel  FROM Data WHERE Interpret = 'Hanswerner'&quot;);
        Query1-&gt;Open();

        AnsiString Interpretabl;
        TTreeNode* Item;
        while(!Query1-&gt;Eof)
        {
                if((Interpretabl != Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString) &amp;&amp; (Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString != &quot;&quot;))
                {
                        Item = TreeView2-&gt;Items-&gt;Add(NULL, Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString);
                        Interpretabl = Query1-&gt;FieldByName(&quot;Interpret&quot;)-&gt;AsString;
                }
                if( Query1-&gt;FieldByName(&quot;Album&quot;)-&gt;AsString != &quot;&quot;)
                {
                        TTreeNode* Album = TreeView2-&gt;Items-&gt;AddChild(Item, Query1-&gt;FieldByName(&quot;Album&quot;)-&gt;AsString);
                }
                Query1-&gt;Next();
        }
        }
        catch(...)
        {
        Application-&gt;MessageBox(&quot;Error opening Database&quot;,NULL,NULL);
        }
</code></pre>
<p>Dabei sollen daten aus einem Tabel Daten ausgelesen werden und in einem Tree Darzustellen...<br />
Leider gibt es ab einer gewissen Datenbankgröße massive Probleme (sprich der catch fall trifft ein <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="😞"
    /> )<br />
ohne eigenen catch tritt der standart catch fall von Borland (Formcreate) ein</p>
<p>ich hoffe es kann mir jemand helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164003</guid><dc:creator><![CDATA[download123]]></dc:creator><pubDate>Sun, 29 Oct 2006 19:31:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Sun, 29 Oct 2006 19:34:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>benutzt den Debugger und las dir die Messages der geworfenen Exceptions anzeigen, anstatt sie einfach mit deiner Standard-Message anzuzeigen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164006</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164006</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 29 Oct 2006 19:34:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Sun, 29 Oct 2006 19:38:07 GMT]]></title><description><![CDATA[<p>okay... die fehlermeldung ist</p>
<p>&quot;Project Project1.exe raised exception class EOutOfResources with message 'Unable to insert an item'. Process stopped. Use Step or Run to continue.&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164008</guid><dc:creator><![CDATA[download123]]></dc:creator><pubDate>Sun, 29 Oct 2006 19:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Sun, 29 Oct 2006 19:45:21 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Wieviele Datensätze willst du denn eintragen und bei dem wievieltem kommt die Exception?</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164016</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 29 Oct 2006 19:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Sun, 29 Oct 2006 20:14:17 GMT]]></title><description><![CDATA[<p>insgesammt etwa 200 (mit children)</p>
<p>das soll die interpreten und alben meiner Musiksammlung darstellen... (später sollen auch mehr als 200 möglich sein)</p>
<p>hmm....</p>
<p>wollte gerade einen zähler einbauen... laut dem es schon beim ersten währe...</p>
<p>aber ich habe mitlerweile auch ne anderen Error :<br />
&quot;Project Project1.exe raised exeption class EAccessViolation with Message 'Access ciolation at Adress 40134100 in module 'vcl60bpl'. Read of adress 00000057'. Process stopped. Use Step or Run to continue&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164039</guid><dc:creator><![CDATA[download123]]></dc:creator><pubDate>Sun, 29 Oct 2006 20:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit TQuery Datenbank.. vieleicht auch TTreeView on Mon, 30 Oct 2006 16:34:00 GMT]]></title><description><![CDATA[<p>Also... vorraussichtlich... bestand das problem aus leeren Einträgen in der Datenbank</p>
<p>habe mal alles leere durch UNBEKANNT ersetzen lassen... jetzt geht alles</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164692</guid><dc:creator><![CDATA[download123]]></dc:creator><pubDate>Mon, 30 Oct 2006 16:34:00 GMT</pubDate></item></channel></rss>