<?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[Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mir einen Dateityp registriert, bei dem bei DblClick mein Programm gestartet wird!</p>
<p>Schön und gut, das hat auch funktioniert, allerdings bekomme ich zugriffsverletzung:</p>
<pre><code class="language-cpp">if(ParamStr(1).Pos(&quot;.vnf&quot;)&gt;0 || ParamStr(1).Pos(&quot;.VNF&quot;)&gt;0)   //nur .vnf - Dateien laden
 {
    Application-&gt;ProcessMessages();
    if(frmSplash)
     frmSplash-&gt;Label1-&gt;Caption = &quot;Loading external file&quot;;

    Application-&gt;ProcessMessages();
    Form1-&gt;Show();               
    //ShowMessage(ParamStr(1));
    Form16 = new TForm16(Application);

    Form16-&gt;RichEdit1-&gt;Lines-&gt;LoadFromFile(ParamStr(1));
    Form16-&gt;RichEdit1-&gt;ReadOnly = true; 

    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[0]-&gt;Enabled=false;
    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[1]-&gt;Enabled=false;
    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[2]-&gt;Enabled=false;
    Form16-&gt;Caption = &quot;Notizen für &quot; + String(ExtractFileName(ParamStr(1)));
    Form16-&gt;Show();
 }
</code></pre>
<p>so,</p>
<p>Form16 gehört mit zum Programm, wurde mit formulardesigner hinzugefügt!<br />
frmSplash ist ein Splashscreen (mögliche Fehlerquelle da dieser im FormCreate-Event des Form1 benutzt wird)</p>
<p>CodeGuard-Bericht:</p>
<pre><code>Error 00001. 0x100600 (Thread 0x0DA8):
Access in invalid memory: Attempt to access 4 byte(s) at 0x00000000+784.
Call Tree:
   0x0040B652(=Main.exe:0x01:00A652)
   0x0051F715(=Main.exe:0x01:11E715)
   0x00534434(=Main.exe:0x01:133434)
   0x005340AF(=Main.exe:0x01:1330AF)
   0x004C880A(=Main.exe:0x01:0C780A)
   0x77D18709(=USER32.DLL:0x01:007709)
</code></pre>
<p>der kam einmal, und der:</p>
<pre><code>Fehler 00001. 0x300010 (Thread 0x130C):
Ressourcenleck: Objekt (0xDD5F84) war nie Gelöscht

Objekt (0x00DD5F84) [Größe: 72 Byte] war erstellt mit new
Aufrufhierarchie:
   0x00403ECF(=Main.exe:0x01:002ECF) D:\VDA_REMAKE\Funktionen_in_DLL2\main_code.cpp#36
   0x00440E60(=Main.exe:0x01:03FE60)
   0x00473924(=Main.exe:0x01:072924)
   0x0047359F(=Main.exe:0x01:07259F)
   0x00419BFE(=Main.exe:0x01:018BFE)
   0x77D18709(=USER32.DLL:0x01:007709)
</code></pre>
<p>Zeile 36 wäre das vom Editor erzeugte</p>
<pre><code class="language-cpp">TForm1 *Form1;
</code></pre>
<p>kann mir jmd helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169956/zugriffsverletzung-wenn-ich-programm-per-dblclick-auf-datei-starte</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 19:11:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169956.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Jan 2007 13:55:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte on Wed, 10 Jan 2007 13:55:07 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mir einen Dateityp registriert, bei dem bei DblClick mein Programm gestartet wird!</p>
<p>Schön und gut, das hat auch funktioniert, allerdings bekomme ich zugriffsverletzung:</p>
<pre><code class="language-cpp">if(ParamStr(1).Pos(&quot;.vnf&quot;)&gt;0 || ParamStr(1).Pos(&quot;.VNF&quot;)&gt;0)   //nur .vnf - Dateien laden
 {
    Application-&gt;ProcessMessages();
    if(frmSplash)
     frmSplash-&gt;Label1-&gt;Caption = &quot;Loading external file&quot;;

    Application-&gt;ProcessMessages();
    Form1-&gt;Show();               
    //ShowMessage(ParamStr(1));
    Form16 = new TForm16(Application);

    Form16-&gt;RichEdit1-&gt;Lines-&gt;LoadFromFile(ParamStr(1));
    Form16-&gt;RichEdit1-&gt;ReadOnly = true; 

    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[0]-&gt;Enabled=false;
    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[1]-&gt;Enabled=false;
    Form16-&gt;MainMenu1-&gt;Items-&gt;Items[2]-&gt;Enabled=false;
    Form16-&gt;Caption = &quot;Notizen für &quot; + String(ExtractFileName(ParamStr(1)));
    Form16-&gt;Show();
 }
</code></pre>
<p>so,</p>
<p>Form16 gehört mit zum Programm, wurde mit formulardesigner hinzugefügt!<br />
frmSplash ist ein Splashscreen (mögliche Fehlerquelle da dieser im FormCreate-Event des Form1 benutzt wird)</p>
<p>CodeGuard-Bericht:</p>
<pre><code>Error 00001. 0x100600 (Thread 0x0DA8):
Access in invalid memory: Attempt to access 4 byte(s) at 0x00000000+784.
Call Tree:
   0x0040B652(=Main.exe:0x01:00A652)
   0x0051F715(=Main.exe:0x01:11E715)
   0x00534434(=Main.exe:0x01:133434)
   0x005340AF(=Main.exe:0x01:1330AF)
   0x004C880A(=Main.exe:0x01:0C780A)
   0x77D18709(=USER32.DLL:0x01:007709)
</code></pre>
<p>der kam einmal, und der:</p>
<pre><code>Fehler 00001. 0x300010 (Thread 0x130C):
Ressourcenleck: Objekt (0xDD5F84) war nie Gelöscht

Objekt (0x00DD5F84) [Größe: 72 Byte] war erstellt mit new
Aufrufhierarchie:
   0x00403ECF(=Main.exe:0x01:002ECF) D:\VDA_REMAKE\Funktionen_in_DLL2\main_code.cpp#36
   0x00440E60(=Main.exe:0x01:03FE60)
   0x00473924(=Main.exe:0x01:072924)
   0x0047359F(=Main.exe:0x01:07259F)
   0x00419BFE(=Main.exe:0x01:018BFE)
   0x77D18709(=USER32.DLL:0x01:007709)
</code></pre>
<p>Zeile 36 wäre das vom Editor erzeugte</p>
<pre><code class="language-cpp">TForm1 *Form1;
</code></pre>
<p>kann mir jmd helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1207138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1207138</guid><dc:creator><![CDATA[DayTime]]></dc:creator><pubDate>Wed, 10 Jan 2007 13:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte on Wed, 10 Jan 2007 16:08:45 GMT]]></title><description><![CDATA[<p>Setze doch mal einen Breakpoint in den OnCreate-Event deiner Form. Beim Menü Start/Parameter vom Builder kannst du die zu öffnende Datei mit eintragen, damit du den Test aus der IDE heraus machen kannst. Existiert denn frmSplash überhaupt? Ist der Pointer defaultmäßig auf 0 gesetzt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1207150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1207150</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 10 Jan 2007 16:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte on Wed, 10 Jan 2007 14:59:10 GMT]]></title><description><![CDATA[<p>kannst du mir bitte erklären wie ich das mit dem parameter mache und wie ich dann die sache aus der IDE heraus starte?</p>
<p>Ja frmSplash existiert!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1207182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1207182</guid><dc:creator><![CDATA[DayTime]]></dc:creator><pubDate>Wed, 10 Jan 2007 14:59:10 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte on Wed, 10 Jan 2007 15:24:55 GMT]]></title><description><![CDATA[<p>Im BCB unter Start-&gt;Parameter kannst Du die zu übergebenden Parameter angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1207194</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1207194</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 10 Jan 2007 15:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriffsverletzung wenn ich Programm per DblClick auf Datei starte on Wed, 10 Jan 2007 16:10:24 GMT]]></title><description><![CDATA[<p>Was in deinem Fall der Name (mit kompletten Pfad) der Datei ist auf die du doppelt klicken willst. Dann einfach dein Programm vom Builder aus starten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1207233</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1207233</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 10 Jan 2007 16:10:24 GMT</pubDate></item></channel></rss>