| | |
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 |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream image input int integer java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct template text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





