<?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[Was ist das für eine Fehlermeldung]]></title><description><![CDATA[<p>hallo leute!</p>
<p>Ich habe eine seltsame fehlermeldung bekommen in einem MDI Projekt in dem ich GetFtpConnection verwende.</p>
<p>WinInet.lib ist inkludiert und das afxinet.h gibts natürlich auch.</p>
<p>Der Fehler trat auf als ich zu einem bestehenden Modell mit HINTERNET hinterntSession eine CFtpConnection machte. Ich weiß aber nicht ob es daran liegt. Ich hoffe jemand kennt diese fehlermeldung und kann mit helfenn..</p>
<p>danke</p>
<p>Dieser Text kommt beim kompilieren in einem popup:</p>
<p>Debug Assertion Failed!<br />
File: AfxWin1.inl<br />
Line:27</p>
<p>PS: hab auch einen screenshot...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51858/was-ist-das-für-eine-fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 18:01:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51858.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Oct 2003 13:48:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Tue, 14 Oct 2003 13:48:55 GMT]]></title><description><![CDATA[<p>hallo leute!</p>
<p>Ich habe eine seltsame fehlermeldung bekommen in einem MDI Projekt in dem ich GetFtpConnection verwende.</p>
<p>WinInet.lib ist inkludiert und das afxinet.h gibts natürlich auch.</p>
<p>Der Fehler trat auf als ich zu einem bestehenden Modell mit HINTERNET hinterntSession eine CFtpConnection machte. Ich weiß aber nicht ob es daran liegt. Ich hoffe jemand kennt diese fehlermeldung und kann mit helfenn..</p>
<p>danke</p>
<p>Dieser Text kommt beim kompilieren in einem popup:</p>
<p>Debug Assertion Failed!<br />
File: AfxWin1.inl<br />
Line:27</p>
<p>PS: hab auch einen screenshot...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372070</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Tue, 14 Oct 2003 13:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 07:09:33 GMT]]></title><description><![CDATA[<p>Falls du den MFC-Quellcode mit installiert hast, kannst du in diese Datei einfach reinschauen:</p>
<pre><code class="language-cpp">_AFXWIN_INLINE LPCTSTR AFXAPI AfxGetAppName()
	{ ASSERT(afxCurrentAppName != NULL); return afxCurrentAppName; }
</code></pre>
<p>Hast du mal mit dem Debugger geprüft, wie es zu diesem Aufruf kommt, und wie der Callstack aussieht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372454</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 15 Oct 2003 07:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 07:12:13 GMT]]></title><description><![CDATA[<p>ja diese Methode hab ich mir angesehen, werd aber nicht schlau daraus. Ich denke viel eher das da eine Kollision zwischen HINTERNET hInternetSession; und<br />
CFtpConnection* ftp; CInternetSession net; besteht. Ich will auf CFtp umstellen. kann sein das beides zusammen den Fehler verursacht. Was meinst du?</p>
<p>lg<br />
l00P</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372456</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Wed, 15 Oct 2003 07:12:13 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 07:23:03 GMT]]></title><description><![CDATA[<p>l00P schrieb:</p>
<blockquote>
<p>Was meinst du?</p>
</blockquote>
<p>Ich meine, du sollst mit dem Debugger prüfen, wie es zu diesem Aufruf kommt, und wie der Callstack aussieht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372464</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 15 Oct 2003 07:23:03 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 11:59:54 GMT]]></title><description><![CDATA[<p>...leider kenne ich mich mit dem debugger noch nicht so gut aus und weiß auch nicht was ein callstack ist. Kannst du mit bitte weiterhelfen?</p>
<p>das ist der teil der in Call STack drinnen steht????<br />
AfxGetAppName() line 27 + 33 bytes<br />
CInternetSession::CInternetSession(const char * 0x00000000, unsigned long 1, unsigned long 0, const char * 0x00000000, const char * 0x00000000, unsigned long 0) line 425 + 5 bytes<br />
tsg_transaction:<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/274c.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--cross_mark"
      title=":x:"
      alt="❌"
    />:x() + 52 bytes<br />
tsg_transaction::tsg_transaction() line 45 + 61 bytes<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>E</mi><mn>2</mn><mn>1</mn><mn>2</mn><mo>(</mo><mo>)</mo><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mn>6</mn><mo>+</mo><mn>3</mn><mn>4</mn><mi>b</mi><mi>y</mi><mi>t</mi><mi>e</mi><mi>s</mi></mrow><annotation encoding="application/x-tex">E212() line 6 + 34 bytes  
</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05764em;">E</span><span class="mord mathrm">2</span><span class="mord mathrm">1</span><span class="mord mathrm">2</span><span class="mopen">(</span><span class="mclose">)</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit">e</span><span class="mord mathrm">6</span><span class="mbin">+</span><span class="mord mathrm">3</span><span class="mord mathrm">4</span><span class="mord mathit">b</span><span class="mord mathit" style="margin-right:0.03588em;">y</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit">s</span></span></span></span>E215() + 29 bytes<br />
_initterm(void (void)* * 0x0042a218 $S216, void (void)* * 0x0042a338 ___xc_z) line 525<br />
WinMainCRTStartup() line 274 + 15 bytes</p>
<p>danke<br />
l00P[cpp]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372721</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Wed, 15 Oct 2003 11:59:54 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 12:52:00 GMT]]></title><description><![CDATA[<p>Ich nehme mal an, dass tsg_transaction eine Klasse von dir ist.</p>
<p>Legst du davon zufällig eine globale oder statische Instanz an?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372802</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372802</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 15 Oct 2003 12:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 13:01:35 GMT]]></title><description><![CDATA[<p>soviel ich weiß nicht, habe den code nicht selber geschrieben sondern geerbt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>Das Problem trat auf als ich die bestehenden ftp connection mit HINTERNET umschrieb in CInternetSession und CFtpConnection. Alle sachen mit HINTERNET habe ich auskommentiert und ersetzt. Vertragen die sich nicht oder was??</p>
<p>lg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372813</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Wed, 15 Oct 2003 13:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Wed, 15 Oct 2003 13:05:04 GMT]]></title><description><![CDATA[<p>Ich vermute, dass da Instanzen von MFC-Klassen erstellt werden, bevor das MFC-Framework vollständig initialisiert ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/372818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/372818</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 15 Oct 2003 13:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Thu, 16 Oct 2003 06:15:00 GMT]]></title><description><![CDATA[<p>danke schonmal für deine mühe,</p>
<p>aber kannst du mir sagen wie ich das kontrollieren kann? Ist wirklich ein scheiß error, sitze schon 3 Tage herum und probiere <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>Der Fehler begann als ich CFtpConnection* ftp;<br />
CInternetSession net;<br />
CInternetFile* pFileHandle;</p>
<p>einfügte.</p>
<pre><code class="language-cpp">class tsg_transaction  
{
private:
	struct x  {

	   //HINTERNET hInternetSession; 
	   //HINTERNET hFTPSession;
	   //HINTERNET hFileHandle;

	   CFtpConnection* ftp; 
	   CInternetSession net;
	   CInternetFile* pFileHandle;	//for get_remote_file_handle()

       DWORD  fileSize;
       DWORD  bytesSend;
	   DWORD  bytesReceived;

    }tsg_ftp_control_elem;   

	// thread added ;get file params

	int error;
	CString remotefile;
	CString localfile;
	HANDLE hEvent;
...
...
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/373355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373355</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Thu, 16 Oct 2003 06:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Thu, 16 Oct 2003 06:24:45 GMT]]></title><description><![CDATA[<p>Irgendwo in dem Programm gibt es eine globale Instanz von tsg_transaction. Die wird zusammen mit allen anderen globalen Instanzen direkt beim Programmstart erzeugt, in undefinierter Reihenfolge. Da tsg_transaction einen Member vom Typ CInternetSession hat, wird dieses Objekt auch gleich mit erstellt.</p>
<p>Da es sich um eine MFC-Anwendung handelt, gibt es irgendwo auch ein globales MFC-Objekt, z.B. eine Instanz einer von CWinApp abgeleiteten Klasse.</p>
<p>Wenn nun die tsg_transaction-Instanz vor der CWinApp-Instanz erzeugt wird, könnte das diesen Fehler verursachen. Da du auf die Reihenfolge der Erzeugung keinen direkten Einfluss hast, kannst du das nur lösen, indem du entweder die tsg_transaction-Instanz nicht global erstellst, oder aus dem CInternetSession-Member einen Zeiger machst, den du auf eine erst bei Bedarf dynamisch erstellte Instanz zeigen lässt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373358</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 16 Oct 2003 06:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to Was ist das für eine Fehlermeldung on Thu, 16 Oct 2003 07:59:36 GMT]]></title><description><![CDATA[<p>wow, ich habs geschafft, es ist genau so wie du sagtest, ich habe aus CInternetSession einen Pointer gemacht und nur bei bedarf mit = new eine Instanz gemacht :-))</p>
<p>herzlichen Dank, du hast mir sehr geholfen.</p>
<p>mfg<br />
l00P</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373403</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Thu, 16 Oct 2003 07:59:36 GMT</pubDate></item></channel></rss>