I am having MFC application in visual studio 2008.
I define an structure example-S1 having some members and another structure example-S2 having S1 as vector member.
std::vector clear() and push_back() functions crashes in vs2008 and the same code working fine in visual studio 2005.
memset(objS2, 0, sizeof(S2));
objS2.varS1.clear(); //Application crashes at this point. But this code runs fine in visual studio 2005.
If i comment memset fuction is run fine untill it reach push_back() function and at point this it crashes.
Crashes at this point if i comment memset function.
Please Help me out.