|
From: Lloyd <ll...@cd...> - 2007-09-28 08:14:36
|
Hi ,
I have declared a structure like this...
struct structSip
{
int32 sip;
struct structDip
{
int32 dip;
vector<SessionListRaw> sDetails;
};
vector<structDip> vectDip;
};
vector<structSip> vectSip;
Then tried to insert some data like this
SessionListRaw VectorNode;
vectSip.reserve(1);
vectSip[0].sip=11;
vectSip[0].vectDip.reserve(1);
vectSip[0].vectDip[0].dip=12; //here the program crashes with the
error:- glibc detected corrupted doubly linked list
vectSip[0].vectDip[0].sDetails.push_back(VectorNode);
What could be the reason? can't I use a vector like this to form a
3dimensional array effect?
Thanks,
Lloyd
______________________________________
Scanned and protected by Email scanner
|