|
From: Younes O. <ou...@ei...> - 2007-09-29 18:29:55
|
Hi Llyod,
Without commenting your implementation of a 3D Array, I don't see any
issue with the line of code you pointed in your e-mail. I have tried the
same piece of code under RedHat and it doesn't crash.
Have a nice evening
Younes
On Fri, 2007-09-28 at 13:53 +0530, Lloyd wrote:
> 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
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
Younes
|