**std::vector<sapi::low::WeakPtr<sapi::low::CallerId>> callers_1 = getsubscribers_Event();
for (std::vector<sapi::low::WeakPtr<sapi::low::CallerId> >::iterator iter = callers_1.begin(); iter != callers_1.end(); ++iter)
{
bool isexpired = (*iter).expired();
cout<<"calling is weakpointer expired: "<<isexpired;
sapi::low::SharedPtr<sapi::low::CallerId> aCallerID = (*iter).lock();
if (aCallerID)
{
cout<<"aCallerID: "<<*aCallerID; //Crash
Could some help why crashed in the last line?**
Source: Windows Questions C++