<?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[Fehlermeldung bei Beenden von Programm !]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>kann mir jemand helfen ??</p>
<p>Ich habe eine SDI anwendung in der ich die Hauptansicht splitte.<br />
In der CMainFrame OnCreateClient einen oberen Bereich und einen Unteren Bereich:</p>
<pre><code class="language-cpp">BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{	
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this, 2, 1))
{
TRACE0(&quot;Failed to create splitter window\n&quot;);
return FALSE;
}

CRect rect;
GetClientRect(&amp;rect);

if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CAnsichtTop), CSize(0, rect.Width()/2.2), pContext))
{
TRACE0(&quot;Failed to create TOP pane frame\n&quot;);
return FALSE;
}

if (!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CTickerDialog), CSize(0, 0), pContext))
{
TRACE0(&quot;Failed to create BOTTON pane view\n&quot;);
return FALSE;
}

m_pTickerDialog     = (CTickerDialog*)   m_wndSplitter.GetPane(1,0);
m_pAnsichtTop		= (CAnsichtTop*)	 m_wndSplitter.GetPane(0,0);
TRACE(&quot;-- m_pTickerDialog = %p\n&quot;,m_pTickerDialog);
TRACE(&quot;-- m_pAnsichtTop = %p\n&quot;,m_pAnsichtTop);

// Hole Pointer auf PointerManager
CPointerManager* pPointerManager = CPointerManager::getInstance();
pPointerManager-&gt;setTickerDialog(m_pTickerDialog);
TRACE(&quot;-- pPointerManager-&gt;getTickerDialog() %p\n&quot;,pPointerManager-&gt;getTickerDialog());

return TRUE;
// return CFrameWnd::OnCreateClient(lpcs, pContext);
}
</code></pre>
<p>Die CAnsichtTop ist Abgeleitet von CFrameWnd.<br />
Dort erstelle ich wieder eine OnCreateClient allerdings diesmal Links und Rechts.<br />
Es funktioniert dann auch, allerdings beim Beenden des Programmes bringt er mir eine Fehlermeldung dass er auf eine Speicheradresse nicht zugreiffen kann.</p>
<p>Jetzt denke ich mir, dass er beim Schließen den Oberen Bereich schließt, anschließend in der MainFrame nicht mehr darauf zugreiffen kann ??</p>
<p>Wenn Ich nähmlich in der CAnsichtTop den Splitter auskommentieren funkt es tadellos.</p>
<p>Hat jemand eine Idee ??</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/73701/fehlermeldung-bei-beenden-von-programm</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 22:03:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/73701.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 May 2004 06:57:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung bei Beenden von Programm ! on Thu, 13 May 2004 06:57:52 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>kann mir jemand helfen ??</p>
<p>Ich habe eine SDI anwendung in der ich die Hauptansicht splitte.<br />
In der CMainFrame OnCreateClient einen oberen Bereich und einen Unteren Bereich:</p>
<pre><code class="language-cpp">BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{	
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this, 2, 1))
{
TRACE0(&quot;Failed to create splitter window\n&quot;);
return FALSE;
}

CRect rect;
GetClientRect(&amp;rect);

if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CAnsichtTop), CSize(0, rect.Width()/2.2), pContext))
{
TRACE0(&quot;Failed to create TOP pane frame\n&quot;);
return FALSE;
}

if (!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CTickerDialog), CSize(0, 0), pContext))
{
TRACE0(&quot;Failed to create BOTTON pane view\n&quot;);
return FALSE;
}

m_pTickerDialog     = (CTickerDialog*)   m_wndSplitter.GetPane(1,0);
m_pAnsichtTop		= (CAnsichtTop*)	 m_wndSplitter.GetPane(0,0);
TRACE(&quot;-- m_pTickerDialog = %p\n&quot;,m_pTickerDialog);
TRACE(&quot;-- m_pAnsichtTop = %p\n&quot;,m_pAnsichtTop);

// Hole Pointer auf PointerManager
CPointerManager* pPointerManager = CPointerManager::getInstance();
pPointerManager-&gt;setTickerDialog(m_pTickerDialog);
TRACE(&quot;-- pPointerManager-&gt;getTickerDialog() %p\n&quot;,pPointerManager-&gt;getTickerDialog());

return TRUE;
// return CFrameWnd::OnCreateClient(lpcs, pContext);
}
</code></pre>
<p>Die CAnsichtTop ist Abgeleitet von CFrameWnd.<br />
Dort erstelle ich wieder eine OnCreateClient allerdings diesmal Links und Rechts.<br />
Es funktioniert dann auch, allerdings beim Beenden des Programmes bringt er mir eine Fehlermeldung dass er auf eine Speicheradresse nicht zugreiffen kann.</p>
<p>Jetzt denke ich mir, dass er beim Schließen den Oberen Bereich schließt, anschließend in der MainFrame nicht mehr darauf zugreiffen kann ??</p>
<p>Wenn Ich nähmlich in der CAnsichtTop den Splitter auskommentieren funkt es tadellos.</p>
<p>Hat jemand eine Idee ??</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519426</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Thu, 13 May 2004 06:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung bei Beenden von Programm ! on Thu, 13 May 2004 08:46:06 GMT]]></title><description><![CDATA[<p>Folgende Fehlerbeschreibung kommt:</p>
<p>ASSERT_VALID fails with illegal vtable pointer.<br />
ASSERT_VALID fails with illegal vtable pointer.<br />
Second Chance Assertion Failed: File winfrm.cpp, Line 2124<br />
Nicht abgefangene Ausnahme in analyser.exe (KERNEL32.DLL): 0xC0000005: Access Violation.<br />
Nicht abgefangene Ausnahme in analyser.exe (KERNEL32.DLL): 0xC0000005: Access Violation.</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519478</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Thu, 13 May 2004 08:46:06 GMT</pubDate></item></channel></rss>