Thanks Younes. I think the program crashes when I use it along with
wxWidgets library (am not sure). When I tried the code alone it is not
crashing!
"Without commenting your implementation of a 3D Array,"
Why do you say this? Do you know a better way for dynamically growing
(any dimension can grow) 3D array...
Thanks,
Lloyd
On Sat, 2007-09-29 at 22:28 +0400, Younes Ouadi wrote:
> 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
______________________________________
Scanned and protected by Email scanner
|