J
joseantonio
Hi all,
I am novice in C++, (basically, novice using OOP). I am developing an
application where I use a vector 3D defined as
vector< vector< vector<double> > >
Ez(NFILAS, vector< vector<double> >(NCOLUMNAS,
vector<double>(NFRAMES, 0.)));
in Borland C++ Builder 6. I supposse an instance of this vector is
created on the heap. Is that true? In such a case, should I destroy it
when I don't need it anymore to release resources?. I tried to do it
by mean the following sentence:
Ez.~vector< vector< vector<double> > >();
but I got the next exception
Project ModoTM.exe raised exception class EAccessViolation with
message 'Access violation at address 01194302 in module
'BORLNDMM.DLL'. Read of address 00001DA0'. Process stopped. Use Step
or Run to continue.
where is the mistake with this approach?
Thanks in advance ;-)
I am novice in C++, (basically, novice using OOP). I am developing an
application where I use a vector 3D defined as
vector< vector< vector<double> > >
Ez(NFILAS, vector< vector<double> >(NCOLUMNAS,
vector<double>(NFRAMES, 0.)));
in Borland C++ Builder 6. I supposse an instance of this vector is
created on the heap. Is that true? In such a case, should I destroy it
when I don't need it anymore to release resources?. I tried to do it
by mean the following sentence:
Ez.~vector< vector< vector<double> > >();
but I got the next exception
Project ModoTM.exe raised exception class EAccessViolation with
message 'Access violation at address 01194302 in module
'BORLNDMM.DLL'. Read of address 00001DA0'. Process stopped. Use Step
or Run to continue.
where is the mistake with this approach?
Thanks in advance ;-)