<?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[DoModal() stürzt ab]]></title><description><![CDATA[<p>hallo,</p>
<p>habe folgendes Problem</p>
<p>ich möchte ein Dialog aufrufen und habe dies immer sogemacht:</p>
<pre><code class="language-cpp">CDlgUpdate dlg;
	dlg.DoModal();
</code></pre>
<p>vorher includiere ich natürlich die dazugehörige header Datei. Wenn ich das aber so mache, kommt der Laufzeitfehler &quot;Debug Assertion Failed !&quot;. Ich versuche diesen Dialog beim klick auf einen Menüpunkt zuöffnen.</p>
<p>Wenn ich es so aufrufe:</p>
<pre><code class="language-cpp">CDialog dlg(IDD_DLGUPDATE);
dlg.DoModal();
</code></pre>
<p>geht es, aber bringt mir ja nicht besonders viel, da ich gerne was im Dialog programmieren würde..</p>
<p>woran kann das liegen??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/52080/domodal-stürzt-ab</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 18:01:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52080.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Oct 2003 09:46:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DoModal() stürzt ab on Thu, 16 Oct 2003 09:46:55 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>habe folgendes Problem</p>
<p>ich möchte ein Dialog aufrufen und habe dies immer sogemacht:</p>
<pre><code class="language-cpp">CDlgUpdate dlg;
	dlg.DoModal();
</code></pre>
<p>vorher includiere ich natürlich die dazugehörige header Datei. Wenn ich das aber so mache, kommt der Laufzeitfehler &quot;Debug Assertion Failed !&quot;. Ich versuche diesen Dialog beim klick auf einen Menüpunkt zuöffnen.</p>
<p>Wenn ich es so aufrufe:</p>
<pre><code class="language-cpp">CDialog dlg(IDD_DLGUPDATE);
dlg.DoModal();
</code></pre>
<p>geht es, aber bringt mir ja nicht besonders viel, da ich gerne was im Dialog programmieren würde..</p>
<p>woran kann das liegen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373488</guid><dc:creator><![CDATA[personenkult]]></dc:creator><pubDate>Thu, 16 Oct 2003 09:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to DoModal() stürzt ab on Thu, 16 Oct 2003 09:49:21 GMT]]></title><description><![CDATA[<p>Greifst du im Konstruktor von CDlgUpdate auf irgendwelche Steuerelemente zu?</p>
<p>Ansonsten zeig doch bitte mal die vollständige Fehlermeldung, und den Callstack zum Zeitpunkt der fehlgeschlagenen Assertion.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373492</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 16 Oct 2003 09:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to DoModal() stürzt ab on Thu, 16 Oct 2003 10:00:37 GMT]]></title><description><![CDATA[<p>Nein ich greife auf nichts zu im Konstruktor..</p>
<p>als Fehlermeldung kommt:</p>
<p>Debug Assertion Failed!<br />
File: dlgdata.cpp<br />
Line: 43</p>
<p>wie kann ich dir &quot;den Callstack zum Zeitpunkt der fehlgeschlagenen Assertion&quot; zeigen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373507</guid><dc:creator><![CDATA[personenkult]]></dc:creator><pubDate>Thu, 16 Oct 2003 10:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to DoModal() stürzt ab on Thu, 16 Oct 2003 10:05:04 GMT]]></title><description><![CDATA[<p>personenkult schrieb:</p>
<blockquote>
<p>Debug Assertion Failed!<br />
File: dlgdata.cpp<br />
Line: 43</p>
</blockquote>
<pre><code class="language-cpp">m_pDlgWnd-&gt;GetDlgItem(nIDC, &amp;hWndCtrl);
	if (hWndCtrl == NULL)
	{
		TRACE1(&quot;Error: no data exchange control with ID 0x%04X.\n&quot;, nIDC);
		ASSERT(FALSE);
</code></pre>
<p>Du hast vermutlich in DoDataExchange ein Steuerelement drinstehen, das es nicht mehr gibt.</p>
<blockquote>
<p>wie kann ich dir &quot;den Callstack zum Zeitpunkt der fehlgeschlagenen Assertion&quot; zeigen??</p>
</blockquote>
<p>Indem du dein Programm mit dem Debugger startest. Der gibt dann auch aus, welche Control-ID nicht mehr da ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373512</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 16 Oct 2003 10:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to DoModal() stürzt ab on Thu, 16 Oct 2003 10:14:50 GMT]]></title><description><![CDATA[<p>ja das wars:) Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/373520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373520</guid><dc:creator><![CDATA[personenkult]]></dc:creator><pubDate>Thu, 16 Oct 2003 10:14:50 GMT</pubDate></item></channel></rss>