المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Sending data from vector into and array



C++ Programming
05-07-2009, 05:01 PM
I stored the data in structure and placed it into a vector. However i need to upload this data through web service to the server and this happend for every 5 mins(i used a waitable timer).thus i used an array and send the data from vector to an array

LogInfo *Info = new LogInfo [m_vectStruct.size()];
for (int j = 0; j < m_vectStruct.size(); ++j)
{
ThreatInfo[j] = m_vectStruct.at(j);
}

However the data is going beyong 800MB and becoz of this the network is getting blocked.

Thus please let me know how can i send the data from vector to an array even if the size of the data is more than 3GB???

I Even Used the below code but of no use.
copy ( m_vectStruct.begin(), m_vectStruct.end() , &Info );
Please help its bit urgent...

Thanks in Advance