| | |
threading and classes
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 98
Reputation:
Solved Threads: 2
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
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
![]() |
Other Threads in the C++ Forum
- Previous Thread: I need help!!!
- Next Thread: Deleting and Locking/Unlocking An Array
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





