943,724 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 248
  • C++ RSS
Mar 16th, 2009
0

threading and classes

Expand Post »
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
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Nemoticchigga is offline Offline
98 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: I need help!!!
Next Thread in C++ Forum Timeline: Deleting and Locking/Unlocking An Array





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC