1
General / std::vector problem.
« on: November 25, 2010, 03:21:30 pm »
Really thanks for your answers Laurent.
I found the problem.
I found the problem.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
(no debugging symbols found)
Debugger name and version: GNU gdb 6.8
Child process PID: 3212
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
//creating vectors
std::vector<float> pathX_0;
std::vector<float> pathY_0;
std::vector<float> pathX_1;
std::vector<float> pathY_1;
//fill vectors with values - vector 0
pathX_0.push_back(420);
pathY_0.push_back(147);
pathX_0.push_back(610);
pathY_0.push_back(265);
pathX_0.push_back(210);
pathY_0.push_back(470);
// vector 1
pathX_1.push_back(430);
pathY_1.push_back(147);
pathX_1.push_back(620);
pathY_1.push_back(265);
pathX_1.push_back(230);
pathY_1.push_back(470);
//creating vectors
std::vector<float> pathX_0;
std::vector<float> pathY_0;
std::vector<float> pathX_1;
std::vector<float> pathY_1;
//fill vectors with values - vector 0
pathX_0.push_back(420);
pathY_0.push_back(147);
pathX_0.push_back(610);
pathY_0.push_back(265);
pathX_0.push_back(210);
pathY_0.push_back(470);