I
ishekara
Hi,
Strange, I am having a .Net C++ managed dll project, where in i call a new
on a non managed code. This however is giving a problem,
I get an exception saying "An unhandled exception of type
'System.NullReferenceException' occured in Mydll.dll" "Additional
information: Object reference not set to an instance of an object",
class mycpp
{
}
__gc public class myclass
{
public:
myclass()
{
m_cpp=new m_cpp[10]; // this line gives me the error.
}
private:
mycpp *m_cpp;
}
However i have another test project where i wont get this error. Thats why i
called it as strange.
Please let me know if there is any workaround for this problem.
Thanks
IS.
Strange, I am having a .Net C++ managed dll project, where in i call a new
on a non managed code. This however is giving a problem,
I get an exception saying "An unhandled exception of type
'System.NullReferenceException' occured in Mydll.dll" "Additional
information: Object reference not set to an instance of an object",
class mycpp
{
}
__gc public class myclass
{
public:
myclass()
{
m_cpp=new m_cpp[10]; // this line gives me the error.
}
private:
mycpp *m_cpp;
}
However i have another test project where i wont get this error. Thats why i
called it as strange.
Please let me know if there is any workaround for this problem.
Thanks
IS.