<?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[Fehler beim ausführen]]></title><description><![CDATA[<p>Hi Leute ich habe eine DLL und ein Testprogramm. wenn ich jetzt die dll mit dem Testprogramm testen will bekomme ich immer den Fehler:</p>
<p>[code]<br />
Debug Assertion Failed!</p>
<p>Programm C:\classlib\Debug\DLLOffen.exe<br />
File: afxwin2.inl<br />
Line: 126</p>
<p>For information on how xour program can cause an assertion failure, see the Visual C++ documentation on asserts.&quot;</p>
<p>Das Testprogramm erzeugt hierbei eindeutig nicht den fehler da dieses Fehlerfrei funktioniert.</p>
<p>Danker schonmal für eure Hilfe</p>
<p>Blind</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/61399/fehler-beim-ausführen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 16:46:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/61399.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jan 2004 07:28:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 07:28:51 GMT]]></title><description><![CDATA[<p>Hi Leute ich habe eine DLL und ein Testprogramm. wenn ich jetzt die dll mit dem Testprogramm testen will bekomme ich immer den Fehler:</p>
<p>[code]<br />
Debug Assertion Failed!</p>
<p>Programm C:\classlib\Debug\DLLOffen.exe<br />
File: afxwin2.inl<br />
Line: 126</p>
<p>For information on how xour program can cause an assertion failure, see the Visual C++ documentation on asserts.&quot;</p>
<p>Das Testprogramm erzeugt hierbei eindeutig nicht den fehler da dieses Fehlerfrei funktioniert.</p>
<p>Danker schonmal für eure Hilfe</p>
<p>Blind</p>
]]></description><link>https://www.c-plusplus.net/forum/post/435986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/435986</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 07:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 07:42:51 GMT]]></title><description><![CDATA[<p>-programm und dll als debug kompilieren<br />
-mit f5 starten<br />
-auf den fehler warten<br />
-wiederholen klicken<br />
-rechtsklick in vc++-&gt;callstack<br />
-im callstack auf die erste funktion die dir bekannt vorkommt -&gt;gehe zu code</p>
<p>viel spass <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>
]]></description><link>https://www.c-plusplus.net/forum/post/435994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/435994</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 07:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:09:54 GMT]]></title><description><![CDATA[<p>Kann den Fehler selbst nicht genau finden.</p>
<p>Hier mal der callstack:</p>
<pre><code>CClientDC::CClientDC(CWnd * 0x0012f64c {dlltestView hWnd=???}) line 981 + 42 bytes
dlltestView::OnInitialUpdate() line 207 + 12 bytes
ReadPosition(int * 0x0012f704, float * 0x0012f71c, float * 0x0012f708) line 127
CDLLOffenDlg::OnButton1() line 204 + 17 bytes
_AfxDispatchCmdMsg(CCmdTarget * 0x0012fe68 {CDLLOffenDlg}, unsigned int 1000, int 0, void (void)* 0x00401069 CDLLOffenDlg::OnButton1(void), void * 0x00000000, unsigned int 12, AFX_CMDHANDLERINFO * 0x00000000) line 88
CCmdTarget::OnCmdMsg(unsigned int 1000, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 302 + 39 bytes
CDialog::OnCmdMsg(unsigned int 1000, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 97 + 24 bytes
CWnd::OnCommand(unsigned int 1000, long 852516) line 2088
CWnd::OnWndMsg(unsigned int 273, unsigned int 1000, long 852516, long * 0x0012f96c) line 1597 + 28 bytes
CWnd::WindowProc(unsigned int 273, unsigned int 1000, long 852516) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x0012fe68 {CDLLOffenDlg hWnd=???}, HWND__ * 0x000e0220, unsigned int 273, unsigned int 1000, long 852516) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000e0220, unsigned int 273, unsigned int 1000, long 852516) line 368
USER32! 77e02ca8()
USER32! 77e04764()
USER32! 77e04720()
NTDLL! 778a15ef()
USER32! 77e04925()
USER32! 77e0ce0f()
USER32! 77e16321()
USER32! 77e02ca8()
USER32! 77e02dc5()
USER32! 77e02f0f()
USER32! 77e1637d()
CWnd::IsDialogMessageA(tagMSG * 0x005e8574 {msg=0x00000202 wp=0x00000000 lp=0x00090033}) line 182
CWnd::PreTranslateInput(tagMSG * 0x005e8574 {msg=0x00000202 wp=0x00000000 lp=0x00090033}) line 3424
CDialog::PreTranslateMessage(tagMSG * 0x005e8574 {msg=0x00000202 wp=0x00000000 lp=0x00090033}) line 92
CWnd::WalkPreTranslateTree(HWND__ * 0x000e0220, tagMSG * 0x005e8574 {msg=0x00000202 wp=0x00000000 lp=0x00090033}) line 2667 + 18 bytes
CWinThread::PreTranslateMessage(tagMSG * 0x005e8574 {msg=0x00000202 wp=0x00000000 lp=0x00090033}) line 672 + 18 bytes
CWinThread::PumpMessage() line 848 + 30 bytes
CWnd::RunModalLoop(unsigned long 4) line 3478 + 19 bytes
CDialog::DoModal() line 539 + 12 bytes
CDLLOffenApp::InitInstance() line 59 + 11 bytes
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001339e0, int 1) line 39 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001339e0, int 1) line 30
WinMainCRTStartup() line 198 + 54 bytes
KERNEL32! 77e787f5()
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/436007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436007</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:17:56 GMT]]></title><description><![CDATA[<p>welche der funktionen sind von dir?<br />
die? CDLLOffenDlg::OnButton1()<br />
die? dlltestView::OnInitialUpdate()</p>
<p>falls ja mach mal n rechtsklick-&gt;gehe zu code und poste die zeile der jeweiligen funktion</p>
<p>ausserdem noch die letzte zeile in<br />
CClientDC::CClientDC(CWnd * 0x0012f64c {dlltestView hWnd=???}) line 981 + 42 bytes</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436012</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436012</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:26:15 GMT]]></title><description><![CDATA[<p>Die ==&gt;&gt; sind die Genaue Position wo der Verlauf hinzeigt</p>
<p>Die letzte Zeile:</p>
<pre><code class="language-cpp">CClientDC::CClientDC(CWnd* pWnd)
{
==&gt;&gt;	ASSERT(pWnd == NULL || ::IsWindow(pWnd-&gt;m_hWnd));

	if (!Attach(::GetDC(m_hWnd = pWnd-&gt;GetSafeHwnd())))
		AfxThrowResourceException();
}
</code></pre>
<p>dlltestView</p>
<pre><code class="language-cpp">if( ob-&gt;canRender() == true)
	{
		// Make sure, the overlay bitmap is enabled
		ob-&gt;setEnable(true);
==&gt;&gt;		CClientDC dc(this); 
		HDC hdc = dc.GetSafeHdc();
		for(y=0;y&lt;PICY;y++)
		{
			for(x=0;x&lt;PICX;x++)
			{
				rgb = GetPixel(hdc,x,y);
				rot[x][y]=GetRValue(rgb);
				blau[x][y]=GetBValue(rgb);
				gruen[x][y]=GetGValue(rgb);
			}
		}
	}
</code></pre>
<p>CDLLOffenDlg::OnButton1()</p>
<pre><code class="language-cpp">ptr_pderrs1[1]=  ptr_cderrs1[1] = m_ptr_cderrs;
==&gt;&gt;	m_readposition = ReadPosition(&amp;ptr_ncolours,ptr_pderrs1,ptr_cderrs1);

	m_ptr_ncolours=ptr_ncolours;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/436015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436015</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:26:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:35:23 GMT]]></title><description><![CDATA[<p>blind schrieb:</p>
<blockquote>
<p>Die ==&gt;&gt; sind die Genaue Position wo der Verlauf hinzeigt</p>
<p>==&gt;&gt; ASSERT(pWnd == NULL || ::IsWindow(pWnd-&gt;m_hWnd));</p>
<p>==&gt;&gt; CClientDC dc(this);</p>
</blockquote>
<p>was sagt uns das?<br />
der this zeiger, den du dem konstruktor mit CClientDC dc(this); übergibst ist kein gültiges fenster (ASSERT(pWnd == NULL || ::IsWindow(pWnd-&gt;m_hWnd));)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436022</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:35:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:41:49 GMT]]></title><description><![CDATA[<p>und wie kann ich das umgehen da ich ja schlecht in einer dll ein Fenster öffnen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436030</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:46:46 GMT]]></title><description><![CDATA[<p>poste mal die klasse: dlltestView</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436037</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 08:51:56 GMT]]></title><description><![CDATA[<p>Hier zumindest der anfang der Funktion:</p>
<pre><code class="language-cpp">//	CView::OnInitialUpdate();

	// TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
	DShowLib::Grabber::tVidCapDevListPtr pVidCapDevList = m_pGrabber-&gt;getAvailableVideoCaptureDevices();
  if( pVidCapDevList == 0 )
  {
		if( m_pGrabber-&gt;getLastError() )
    {
      return;
    }
		else
    {
      CString errMsg( &quot;The list of all available video capture devices &quot; );
      errMsg += ( &quot;could not be generated!&quot; );
      return;
    }
  }

  if( pVidCapDevList-&gt;empty() )
  {
    AfxMessageBox( &quot;There are is no video capture device available!&quot; );
    return;
  }

  // Generate a string which contains the index and the name of each available
  // video capture device
  CString message( &quot;Available video capture devices: \n\n&quot; );
  int index=0;

  // open the device which is defined by the entry specified by &quot;deviceIndex&quot;
  int deviceIndex;

  deviceIndex = 0; // the first device in the list
  if( deviceIndex &lt; pVidCapDevList-&gt;size() )
  {
    m_pGrabber-&gt;openDev( (*pVidCapDevList)[deviceIndex] );
  }
	DShowLib::Grabber::tVidFmtListPtr pVideoFormats = m_pGrabber-&gt;getAvailableVideoFormats();
  int formatIndex = 3; // select the first format // ab 1 bis 4 sind Farbbilder // 4= RGB24
  if( formatIndex &lt; pVideoFormats-&gt;size())
  {
		m_pGrabber-&gt;setSinkType( DShowLib::FrameGrabberSink(DShowLib::FrameGrabberSink::tFrameGrabberMode::eSNAP, DShowLib::eRGB24 ) );
		m_pGrabber-&gt;setVideoFormat( (*pVideoFormats)[formatIndex]);
        m_pGrabber-&gt;setHWND( GetSafeHwnd() );    
  }
  else
  {
    AfxMessageBox(&quot;No video formats available&quot;);
  }

	m_pGrabber-&gt;setSinkType( FrameGrabberSink( FrameGrabberSink::tFrameGrabberMode::eSNAP, eRGB24 ) );  

  // Set a MemBufferCollection.  
  Grabber::tMemBufferCollectionPtr pMemBuffColl = m_pGrabber-&gt;newMemBufferCollection( NUM_BUFFERS );  
  m_pGrabber-&gt;setActiveMemBufferCollection( pMemBuffColl );  

  m_pGrabber-&gt;startLive( false );               // Start the grabber. 
	m_pGrabber-&gt;setProperty((DShowLib::Grabber::tCameraPropertyEnum)CameraControl_Exposure,(long)-7);
//	Sleep(2280);
	COLORREF rgb;
	smart_ptr&lt;DShowLib::OverlayBitmap&gt; ob;
	ob = m_pGrabber-&gt;getOverlay();
	ob-&gt;beginPaint();
	if( ob-&gt;canRender() == true)
	{
		// Make sure, the overlay bitmap is enabled
		ob-&gt;setEnable(true);
		CClientDC dc(this); 
		HDC hdc = dc.GetSafeHdc();
		for(y=0;y&lt;PICY;y++)
		{
			for(x=0;x&lt;PICX;x++)
			{
				rgb = GetPixel(hdc,x,y);
				rot[x][y]=GetRValue(rgb);
				blau[x][y]=GetBValue(rgb);
				gruen[x][y]=GetGValue(rgb);
			}
		}
	}
	ob-&gt;endPaint();
	m_pGrabber-&gt;snapImages( NUM_BUFFERS ); // Grab NUM_BUFFERS images.  
	m_pGrabber-&gt;stopLive();                    // Stop the grabber.   
/* 
	pMemBuffColl-&gt;getBuffer( 0 )-&gt;save(&quot;TESTMEM.BMP&quot;);
	BYTE *pImageData = m_pGrabber-&gt;getActiveMemBuffer()-&gt;getPtr();

	//  Nun irgendwas pImageData[i]  machen. Farbanordnung bei RGB24 ist BGR. Jeweils drei Byte-&gt;ein Pixel 

	// Das Overlay wird hier garnicht mehr gebraucht, da es erst auf dem
	// nächsten Frame, den wir aber nicht sehen, dargestellt wird. Hier kann direkt
	// in den FensterDC gezeichnet werden.

	UpdateData(FALSE);
	//ob-&gt;setEnable(true);

	CClientDC dc(this); 

//	HDC hdc = dc.GetSafeHdc();
	//	xmax==640 ymax==480
.
.
.
.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/436042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436042</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 08:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 09:07:26 GMT]]></title><description><![CDATA[<p>// CView::OnInitialUpdate();</p>
<p>was machst du mit dem cview?<br />
is das cview in der dll?<br />
wenn ja... warum?<br />
wann wird create aufgerufen?</p>
<p>... was machst dein programm/deine dll überhaupt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436051</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 09:07:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 09:33:37 GMT]]></title><description><![CDATA[<p>Ich brauche das CView um auf eine Kammera, die über FireWire angeschlossen ist, zuzugreifen. Also ist das CView auch in der DLL es brauch aber nichts anzeigen sondern nur die Verbindung mit der Kammera aufbauen.</p>
<p>creat wird soweit ich das Projekt im Kopfhabe garnicht aufgerufen da ich ja nichts anzeigen lassen will.</p>
<p>In code steht nur diese Zeile mit creat:</p>
<pre><code class="language-cpp">IMPLEMENT_DYNCREATE(dlltestView, CView)
</code></pre>
<p>was mein Prog macht sind einige berechnungen mit Kammera Bildern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436056</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436056</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 14 Jan 2004 09:33:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim ausführen on Wed, 14 Jan 2004 13:37:17 GMT]]></title><description><![CDATA[<p>zeig mal alle zeilen in denen du das cview benötigst und warum<br />
meiner meinung nach brauchst du absolut kein cview um zur kamera zu verbinden und die pixeldaten abzugreifen (is directshow oder?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/436241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/436241</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 14 Jan 2004 13:37:17 GMT</pubDate></item></channel></rss>