Nemoticchigga 0 Junior Poster in Training

I have an vs2005 forms application running a thread to constantly try and receive data via ethernet. My problem is once I get the data I want to pass it up through some object oriented layers. When I try to make a call to one of the layers

sampleLayer->blah();

I get a null reference exception. I am able to makes calls to sampleLayer from this class in other places out of the thread, and the class does get set as I have checked that.

I know it has something to do with this being called out of the managed thread, but I dont know how to fix it. Any ideas?

Thanks,
nemo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.