I have the following class which is part of a big project, my problem is at some time during execution the member variables of this class are no more valid. I couldn't access them as I suppose they were destroyed before my application finishes execution.
Don't worry about what you haven't understood, I just need help about c++ part even if I am using two programming languages(C++ and OTcl) in my project.
// when I print something here it is Ok, the problem starts as soon as I access the member variables of these class.
Any member variable of these class whether they are user defined type or built in type like int are not valid in these member function.
Inside here when I check printf("data size %d\n",(int)dcdata_list.size()); it gives a wired negative values... I have gone through the rest of my project and reached this point where I couldn't proceed.
I couldn't access member variables of these class inside its member function, it gives me "Segmentation fault". Apparently I have assigned values to these member variables and even checked by printing out after setting the values at the other point. Since I am running simulation I was wondering if the system destructs these variables before my application finishes execution.
if I do like the following, I will get segmentation fault inside recvData()