<?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[Unhandled exception]]></title><description><![CDATA[<p>hallo, habe mal wieder ein Problem.</p>
<p>Ich moechte ein neues View erstellen und anzeigen lassen.<br />
In folgender Methode welche als member in der App ist.</p>
<pre><code>void CNoNameApp::OnNewForceModel()
{
CForceModel_Doc* fModelDoc;

fModelDoc = (CForceModel_Doc*) pDocTemplateForceModel-&gt;CreateNewDocument();

CString title = &quot;Force Model&quot;;
fModelDoc-&gt;setTitle(title);

// Create FormView
CDiagramFormFrameChild* pFormView = (CDiagramFormFrameChild*) pDocTemplateForceModel-&gt;CreateNewFrame(fModelDoc, NULL);

pDocTemplateForceModel-&gt;InitialUpdateFrame(pFormView,fModelDoc,TRUE);

}
</code></pre>
<p>pDocTemplateForceModel wird in der InitInstance() der App folgendermassen initialisiert:</p>
<pre><code>pDocTemplateForceModel = new CMultiDocTemplate(IDR_MAINFRAME,
		RUNTIME_CLASS(CForceModel_Doc),
		RUNTIME_CLASS(CChildFrame),
		RUNTIME_CLASS(CForceModel_View));
	if (!pDocTemplateForceModel)
		return FALSE;
	AddDocTemplate(pDocTemplateForceModel);
</code></pre>
<p>Bekomme folgenden Zugriffsfehler:</p>
<p>Unhandled exception at 0x004ce13a in NoName.exe: 0xC0000005: Access violation reading location 0x01e90007.</p>
<p>0x01e90007 = pDocTemplateForceModel</p>
<p>sieht jemand nen Fehler? Oder hat mir jemand nen Tipp?</p>
<p>Gruesse BaeMan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184986/unhandled-exception</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 07:14:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184986.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Jun 2007 20:49:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unhandled exception on Wed, 20 Jun 2007 20:49:41 GMT]]></title><description><![CDATA[<p>hallo, habe mal wieder ein Problem.</p>
<p>Ich moechte ein neues View erstellen und anzeigen lassen.<br />
In folgender Methode welche als member in der App ist.</p>
<pre><code>void CNoNameApp::OnNewForceModel()
{
CForceModel_Doc* fModelDoc;

fModelDoc = (CForceModel_Doc*) pDocTemplateForceModel-&gt;CreateNewDocument();

CString title = &quot;Force Model&quot;;
fModelDoc-&gt;setTitle(title);

// Create FormView
CDiagramFormFrameChild* pFormView = (CDiagramFormFrameChild*) pDocTemplateForceModel-&gt;CreateNewFrame(fModelDoc, NULL);

pDocTemplateForceModel-&gt;InitialUpdateFrame(pFormView,fModelDoc,TRUE);

}
</code></pre>
<p>pDocTemplateForceModel wird in der InitInstance() der App folgendermassen initialisiert:</p>
<pre><code>pDocTemplateForceModel = new CMultiDocTemplate(IDR_MAINFRAME,
		RUNTIME_CLASS(CForceModel_Doc),
		RUNTIME_CLASS(CChildFrame),
		RUNTIME_CLASS(CForceModel_View));
	if (!pDocTemplateForceModel)
		return FALSE;
	AddDocTemplate(pDocTemplateForceModel);
</code></pre>
<p>Bekomme folgenden Zugriffsfehler:</p>
<p>Unhandled exception at 0x004ce13a in NoName.exe: 0xC0000005: Access violation reading location 0x01e90007.</p>
<p>0x01e90007 = pDocTemplateForceModel</p>
<p>sieht jemand nen Fehler? Oder hat mir jemand nen Tipp?</p>
<p>Gruesse BaeMan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310243</guid><dc:creator><![CDATA[baeman]]></dc:creator><pubDate>Wed, 20 Jun 2007 20:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to Unhandled exception on Thu, 21 Jun 2007 09:10:04 GMT]]></title><description><![CDATA[<p>Und wo? Bei welchem Statement?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310464</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 21 Jun 2007 09:10:04 GMT</pubDate></item><item><title><![CDATA[Reply to Unhandled exception on Thu, 21 Jun 2007 14:22:16 GMT]]></title><description><![CDATA[<p>Bei:</p>
<p>fModelDoc = (CForceModel_Doc*) pDocTemplateForceModel-&gt;CreateNewDocument();</p>
<p>Was mich noch wundert ist, dass pDocTemplateForceModel beim initialisieren in der app</p>
<pre><code>pDocTemplateForceModel = new CMultiDocTemplate(IDR_MAINFRAME,
        RUNTIME_CLASS(CForceModel_Doc),
        RUNTIME_CLASS(CChildFrame),
        RUNTIME_CLASS(CForceModel_View));
    if (!pDocTemplateForceModel)
        return FALSE;
    AddDocTemplate(pDocTemplateForceModel);
</code></pre>
<p>den wert 0x00b62a50 hat, aber<br />
in der funktion OnNewForceModel den speicherwert: 0x01e90007</p>
<p>gruss baeman</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310749</guid><dc:creator><![CDATA[baeman]]></dc:creator><pubDate>Thu, 21 Jun 2007 14:22:16 GMT</pubDate></item></channel></rss>