Original Post
Using C++/CLI, I have an instance function which I intend to be the entry point for a thread... I start it up like so... That seems to work, sort of. The thread starts running, but I get a NullReferenceException inside of the thread worker function when it tries to access an member object reference. Is there something I am doing wrong that could cause this? I've never played with C++/CLI extensively before.
Threading::ThreadStart^ ts = gcnew Threading::ThreadStart(this,
&MyClass::TheThreadFunc);
Threading::Thread^ t = gcnew Threading::Thread(ts);
t->Start();