<?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[Compiler Fehler?]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe 2 Klasse die miteinander kommunizieren. Nun habe ich folgendes Problem. Wenn ich der Klasse eine weitere 4 Byte Varaible zufüge, so stürtzt das Programm beim Destrucktor aufruf ab.</p>
<p>Die Absturzmessage von Windows lautet:</p>
<p>Debug Error!<br />
DAMAGE: after Normal Block (#48) at 0x00499...</p>
<p>Hier meine Klassen definition:</p>
<pre><code>// MagicDrawClient.h: interface for the CMagicDrawClient class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_)
#define AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_

#if _MSC_VER &gt; 1000
#pragma once
#endif // _MSC_VER &gt; 1000

#include &quot;MultiServer.h&quot;
#include &quot;ChannelTable.h&quot;
#include &lt;string&gt;
#include &lt;iostream.h&gt;

#define MAX_ACTION_HANDLER 7
#define INC_BUFFER_SIZE 1490

struct strAktionData
{
	WORD wParaLen;
	BYTE * vpParamData;
};

class CMagicDrawClient : public CBasicClient  
{
public:
	CMagicDrawClient(CMultiServer&lt;CMagicDrawClient&gt; * pServer, unsigned int nBufferSize, SOCKET s, unsigned int nID, void * par);
	virtual ~CMagicDrawClient();

	void DataAvaible();
	const char * GetUserName();
	void SendChannelList();
private:
	CChannelTable * m_pChannelTable;
	CChannel * m_pMyChannel;
	int m_nChatID;
	std::string * m_pstrUsername;
	BYTE m_bColor;

	//int i;   //kommentiere ich diese Zeile aus, so stürzt das Programm beim Destrucktor aufruf ab

	bool bWriteable;
	void LeftMyChannel();
	void ExecuteBuffer(BYTE * Buffer, unsigned int len);
	bool IsLogged();
	void SendMatrix();
	void StopSending();

	static DWORD WINAPI SendMatrixAsnc(LPVOID Data);

	//Standart Antworten
	void ReplyStatus(BYTE Status);

	//EventHandler
	bool (CMagicDrawClient::*pfncAktionHandler[MAX_ACTION_HANDLER] )(strAktionData &amp;);

	//Aktion Handlers
	bool LogIn( strAktionData &amp; Data);
	bool Logout( strAktionData &amp; Data);
	bool GetChannellist( strAktionData &amp; Data);
	bool JoinChannel( strAktionData &amp; Data);
	bool LeftChannel( strAktionData &amp; Data);
	bool SendChannelMessage( strAktionData &amp; Data);
	bool SetPixel( strAktionData &amp; Data);

};

#endif // !defined(AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_)
</code></pre>
<p>Wie kann das sein das beim einer weiteren Varibale das Programm beim Löschen einer Klasse abstürzt?</p>
<p>Gruß Stu</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136617/compiler-fehler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 13:41:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136617.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Feb 2006 20:42:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiler Fehler? on Sat, 11 Feb 2006 20:42:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe 2 Klasse die miteinander kommunizieren. Nun habe ich folgendes Problem. Wenn ich der Klasse eine weitere 4 Byte Varaible zufüge, so stürtzt das Programm beim Destrucktor aufruf ab.</p>
<p>Die Absturzmessage von Windows lautet:</p>
<p>Debug Error!<br />
DAMAGE: after Normal Block (#48) at 0x00499...</p>
<p>Hier meine Klassen definition:</p>
<pre><code>// MagicDrawClient.h: interface for the CMagicDrawClient class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_)
#define AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_

#if _MSC_VER &gt; 1000
#pragma once
#endif // _MSC_VER &gt; 1000

#include &quot;MultiServer.h&quot;
#include &quot;ChannelTable.h&quot;
#include &lt;string&gt;
#include &lt;iostream.h&gt;

#define MAX_ACTION_HANDLER 7
#define INC_BUFFER_SIZE 1490

struct strAktionData
{
	WORD wParaLen;
	BYTE * vpParamData;
};

class CMagicDrawClient : public CBasicClient  
{
public:
	CMagicDrawClient(CMultiServer&lt;CMagicDrawClient&gt; * pServer, unsigned int nBufferSize, SOCKET s, unsigned int nID, void * par);
	virtual ~CMagicDrawClient();

	void DataAvaible();
	const char * GetUserName();
	void SendChannelList();
private:
	CChannelTable * m_pChannelTable;
	CChannel * m_pMyChannel;
	int m_nChatID;
	std::string * m_pstrUsername;
	BYTE m_bColor;

	//int i;   //kommentiere ich diese Zeile aus, so stürzt das Programm beim Destrucktor aufruf ab

	bool bWriteable;
	void LeftMyChannel();
	void ExecuteBuffer(BYTE * Buffer, unsigned int len);
	bool IsLogged();
	void SendMatrix();
	void StopSending();

	static DWORD WINAPI SendMatrixAsnc(LPVOID Data);

	//Standart Antworten
	void ReplyStatus(BYTE Status);

	//EventHandler
	bool (CMagicDrawClient::*pfncAktionHandler[MAX_ACTION_HANDLER] )(strAktionData &amp;);

	//Aktion Handlers
	bool LogIn( strAktionData &amp; Data);
	bool Logout( strAktionData &amp; Data);
	bool GetChannellist( strAktionData &amp; Data);
	bool JoinChannel( strAktionData &amp; Data);
	bool LeftChannel( strAktionData &amp; Data);
	bool SendChannelMessage( strAktionData &amp; Data);
	bool SetPixel( strAktionData &amp; Data);

};

#endif // !defined(AFX_MAGICDRAWCLIENT_H__03F5E2B2_F803_43A9_9FFE_7C309361B405__INCLUDED_)
</code></pre>
<p>Wie kann das sein das beim einer weiteren Varibale das Programm beim Löschen einer Klasse abstürzt?</p>
<p>Gruß Stu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991845</guid><dc:creator><![CDATA[DiscStu1123]]></dc:creator><pubDate>Sat, 11 Feb 2006 20:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler Fehler? on Sat, 11 Feb 2006 21:00:07 GMT]]></title><description><![CDATA[<p>Du machst dir irgendwie deinen Speicher kaputt. Etwas, was bei verschiedenen Klassengrößen unterschiedliche Auswirkungen hat. Hier wäre ein Tool angebracht, das dir Hilft solche Probleme zu finden. Ich kenne nur valgrind, aber das läuft nur unter Linux.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991857</guid><dc:creator><![CDATA[Ponto]]></dc:creator><pubDate>Sat, 11 Feb 2006 21:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler Fehler? on Sun, 12 Feb 2006 10:58:08 GMT]]></title><description><![CDATA[<p>ich danke dir für deine Antwort, werde es mal testen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992063</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992063</guid><dc:creator><![CDATA[DiscStu1123]]></dc:creator><pubDate>Sun, 12 Feb 2006 10:58:08 GMT</pubDate></item></channel></rss>