W
waldo
Hi, i'm new to this stuff so please excuse my lack of understanding!!!
I've got an unmanaged class called Category and a coresponding managed
class, also called Category (shown at the end of this message)... I can
create and manipulate the class successfully in c#, but it crashes and
i get the following error message when "delete m_pCategory;" is called
in the Finalize() :
Debug Assertion Failed!
File:dbgdel.cpp
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
Any ideas what could be causing this??? Any help is greatly
appreciated:
/// <summary>Constructor</summary>
Category::Category(Utils::Category* pCategory) :
m_pCategory(pCategory)
{
}
/// <summary>Destructor.</summary>
Category::~Category()
{
delete m_pCategory;
m_pCategory = NULL;
}
/// <summary>Finalize.</summary>
Category::!Category()
{
delete m_pCategory;
m_pCategory = NULL;
I've got an unmanaged class called Category and a coresponding managed
class, also called Category (shown at the end of this message)... I can
create and manipulate the class successfully in c#, but it crashes and
i get the following error message when "delete m_pCategory;" is called
in the Finalize() :
Debug Assertion Failed!
File:dbgdel.cpp
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
Any ideas what could be causing this??? Any help is greatly
appreciated:
/// <summary>Constructor</summary>
Category::Category(Utils::Category* pCategory) :
m_pCategory(pCategory)
{
}
/// <summary>Destructor.</summary>
Category::~Category()
{
delete m_pCategory;
m_pCategory = NULL;
}
/// <summary>Finalize.</summary>
Category::!Category()
{
delete m_pCategory;
m_pCategory = NULL;