Problem with Constructor

I am new to C++ in .NET 2005 and uses of ^

I have a new application written and a data class that is instantiated on Load of a Form. Problem is as soon as the constructor of the data class is complete I wind up right in the Destructor. I have the pointer to the Data Class defined as Public in the Form1.h and still the Destructor kicks in.
My declaration is fairly simple...

publilc: MyNameSpace::MyDataClass ^m_pDataClass;

Then in Form1_Load after InitializeComponents

m_pDataClass = gcnew MyNameSpace::MyDataClass(somestuff);

Any help would be appreciated.

[576 byte] By [bxs122] at [2007-12-16]
# 1
Just my own dumb dumb mistake.
bxs122 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified