D
Daniel J Watkins
Hi,
When I attempt to resize a column in a 2d vector I receive the error listed
below. I'm using the libraries supplied with VxWorks.
0xf3fe450 (tExcTask): memPartFree: invalid block 0xf340ef0 in partition
0x311b8c
Here is the example code I'm using to produce the error. Any idea's what is
wrong with the code?
#include <vector>
using namespace std;
using std::vector;
void main(void)
{
std::vector< std::vector<int> > triangle(5);
for(int i = 0; i < triangle.size(); i++)
{
triangle.resize(i+1);
}
}
Thanks in advance,
Daniel.
When I attempt to resize a column in a 2d vector I receive the error listed
below. I'm using the libraries supplied with VxWorks.
0xf3fe450 (tExcTask): memPartFree: invalid block 0xf340ef0 in partition
0x311b8c
Here is the example code I'm using to produce the error. Any idea's what is
wrong with the code?
#include <vector>
using namespace std;
using std::vector;
void main(void)
{
std::vector< std::vector<int> > triangle(5);
for(int i = 0; i < triangle.size(); i++)
{
triangle.resize(i+1);
}
}
Thanks in advance,
Daniel.