<?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[Debug Assertion Failed wincore.cpp line 880]]></title><description><![CDATA[<p>Hi, ich habe folgendes Problem:<br />
Ich habe mir vom Codeproject eine kleine Klasse gezogen mit der man eine ProgressBar,die BMP benutzt, verwenden kann.<br />
Wenn ich das ganze, wie in dem Beispiel verwende funktioniert das auch. Wenn ich das jetzt bei mir einbaue, geht es nicht.<br />
Zur Erklärung:<br />
In meiner Anwendung wird die ProgressBar dann aufgerufen, wenn ich die Entertaste drücke. Nachdem das Beendet ist kommt eine weitere Funktion zum Einsatz. Und dann passiert halt der oben stehende &quot;Fehler&quot; in der Debugversion.</p>
<p>Was könnte das sein?</p>
<p>P.S.: Wenn ich das ganze per Buttonklick mache funktioniert es!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/150728/debug-assertion-failed-wincore-cpp-line-880</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 19:45:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150728.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jun 2006 18:19:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Mon, 19 Jun 2006 18:19:50 GMT]]></title><description><![CDATA[<p>Hi, ich habe folgendes Problem:<br />
Ich habe mir vom Codeproject eine kleine Klasse gezogen mit der man eine ProgressBar,die BMP benutzt, verwenden kann.<br />
Wenn ich das ganze, wie in dem Beispiel verwende funktioniert das auch. Wenn ich das jetzt bei mir einbaue, geht es nicht.<br />
Zur Erklärung:<br />
In meiner Anwendung wird die ProgressBar dann aufgerufen, wenn ich die Entertaste drücke. Nachdem das Beendet ist kommt eine weitere Funktion zum Einsatz. Und dann passiert halt der oben stehende &quot;Fehler&quot; in der Debugversion.</p>
<p>Was könnte das sein?</p>
<p>P.S.: Wenn ich das ganze per Buttonklick mache funktioniert es!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080842</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Mon, 19 Jun 2006 18:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Mon, 19 Jun 2006 18:24:47 GMT]]></title><description><![CDATA[<p>ASSERT-Fehler wegen ungültigem hwnd. Benutze GetSafeHwnd().<br />
<a href="http://msdn2.microsoft.com/en-us/library/d64ehwhz.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/d64ehwhz.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080844</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Mon, 19 Jun 2006 18:24:47 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Mon, 19 Jun 2006 23:24:46 GMT]]></title><description><![CDATA[<p>Ich bekomme das einfach nicht hin!<br />
Hier mal der entsprechende Code:</p>
<pre><code class="language-cpp">void CTest_Dialog::progressStart()
{
	if(i&lt;t_iAnzahl)
	{
	CWnd*    poProgress = NULL;
	CBitmap* poBitmap   = NULL;
	poProgress = &amp;t_cProgress1;
	int b = _ttoi((LPCTSTR) set.in_strZeit);
	int nMultiplyDelay = 300000*b;

	BOOL m_bCheckReverse = true;
  //
	poBitmap = new CBitmap();
    poBitmap-&gt;LoadBitmap(IDB_BMP_BAR1);

#ifdef dCSP_DIALOG_PROGRESS
	m_poSkinProgress = new CSkinProgress
  (
    poProgress,
    nMultiplyDelay,
    poBitmap,
	#ifdef dCSP_SLIDERBAR_METHOD
  m_bCheckReverse
#endif // dCSP_SLIDERBAR_METHOD
  );

  //oProgressPencil.SetPos(nMultiplyDelay);
  //oProgressPencil.SetStep(+1);

  // 

	for(int a = 0; a &lt; nMultiplyDelay; a += 1)
  {
		m_poSkinProgress-&gt;StepIt();
		PeekAndPump();
	}
	delete m_poSkinProgress;
    m_poSkinProgress = NULL;
   // Here the CSkinProgress is deleted
	#endif // dCSP_DIALOG_PROGRESS

  if(poBitmap != NULL)
  {
    delete poBitmap;
  }else{}
	}
	else{}
}
BOOL PeekAndPump()
{
  static MSG msg;

  while(::PeekMessage(&amp;msg,NULL,0,0,PM_NOREMOVE))
  {
	  if(!AfxGetApp()-&gt;PumpMessage())
    {
		  ::PostQuitMessage(0);
		  return FALSE;
	  }	
  }

  return TRUE;
}
</code></pre>
<p>Und aufgerufen wird das Ganze durch:</p>
<pre><code class="language-cpp">BOOL CTest_Dialog::PreTranslateMessage(MSG* pMsg) 
{
    // TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
    // Falls Taste gedrueckt wurde
    if (pMsg-&gt;message == WM_KEYDOWN)
    {
        	if (pMsg-&gt;wParam == VK_RETURN)
	{
            progressStart();
			testenProzess();
	}

	if(pMsg-&gt;wParam == VK_ESCAPE)
	{
		OnOK();
	}

	return 0;
	}

    return CDialog::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Die Klasse ist, wie gesagt, von CodeProject. Hier mal der Link dazu:<br />
<a href="http://www.codeproject.com/miscctrl/cskinprogress.asp" rel="nofollow">http://www.codeproject.com/miscctrl/cskinprogress.asp</a></p>
<p>Ein Beispiel wäre ganz gut!</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081042</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Mon, 19 Jun 2006 23:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Tue, 20 Jun 2006 12:42:42 GMT]]></title><description><![CDATA[<p>Hat denn keiner ne Ahnung, wie ich das lauffähig bekomme?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081397</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Tue, 20 Jun 2006 12:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Tue, 20 Jun 2006 16:07:42 GMT]]></title><description><![CDATA[<p>Debuggen und s.o.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081537</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Tue, 20 Jun 2006 16:07:42 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Tue, 20 Jun 2006 17:04:58 GMT]]></title><description><![CDATA[<p>Debuggen habe ich doch gemacht und da kommt er dann bei der angegebenen Zeile zum stehen. Ich kann damit aner nichts anfangen??????????????</p>
<p>Bitte Hilfe!!!!!!!!!!!</p>
<p>Ich komm an der Stelle nicht weiter!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081555</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Tue, 20 Jun 2006 17:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Tue, 20 Jun 2006 19:30:22 GMT]]></title><description><![CDATA[<p>Was steht denn da genau in Line 880? Da wird doch sicher das Fensterhandle auf Gültigkeit abgefragt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081652</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Tue, 20 Jun 2006 19:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Tue, 20 Jun 2006 22:41:51 GMT]]></title><description><![CDATA[<p>Da steht folgendes:</p>
<pre><code class="language-cpp">// should be a normal window
		ASSERT(::IsWindow(m_hWnd));
</code></pre>
<p>Damit kann ich leider nichts anfangen. Ich bin da noch nicht so firm. In der MFC-Programmierung. Das ganze muß doch irgendwie mit dem Thread zu tun haben. Oder halt mit der PreTranslationMessage. Denn mit einem Buttonklick funktioniert das Ganze ja!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081745</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Tue, 20 Jun 2006 22:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Debug Assertion Failed wincore.cpp line 880 on Wed, 21 Jun 2006 09:14:20 GMT]]></title><description><![CDATA[<p>Wen es interessiert. Ich habe das Problem gelöst mit nur einer kleinen Zeile:</p>
<p>In die PreTranslationMessage folgende Zeile einfügen:</p>
<pre><code class="language-cpp">return TRUE;
</code></pre>
<p>Und schon funktioniert es:</p>
<pre><code class="language-cpp">BOOL CTest_Dialog::PreTranslateMessage(MSG* pMsg) 
{
    // TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
    // Falls Taste gedrueckt wurde
    if (pMsg-&gt;message == WM_KEYDOWN)
    {
            if (pMsg-&gt;wParam == VK_RETURN)
    {
            progressStart();
            testenProzess();
            return TRUE;
    }

    if(pMsg-&gt;wParam == VK_ESCAPE)
    {
        OnOK();
    }

    return 0;
    }

    return CDialog::PreTranslateMessage(pMsg);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1081892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081892</guid><dc:creator><![CDATA[evil-peter]]></dc:creator><pubDate>Wed, 21 Jun 2006 09:14:20 GMT</pubDate></item></channel></rss>