Hi..,
While executing the following code in purifier..,
[code=cpp]
std::vector<int > vecX;
vecX.clear();
int iCount = 0;
{
int iVal;
for (iVal=0; iVal<10;iVal++)
{
vecX.push_back( iVal);
}
}
iCount = vecX.size();
for (int iIndx = 0; iIndx < iCount; iIndx++)
{
std::cout << "Indx = " << iIndx << " Val = " << vecX.at(iIndx) << "\n";
}
[/code]
I got the following errors..,
Any help/suggestions to solve this problems were most welcomed..,
with regards, Sathyanarayanan , Elvista
While executing the following code in purifier..,
[code=cpp]
std::vector<int > vecX;
vecX.clear();
int iCount = 0;
{
int iVal;
for (iVal=0; iVal<10;iVal++)
{
vecX.push_back( iVal);
}
}
iCount = vecX.size();
for (int iIndx = 0; iIndx < iCount; iIndx++)
{
std::cout << "Indx = " << iIndx << " Val = " << vecX.at(iIndx) << "\n";
}
[/code]
I got the following errors..,
Code:
Error location
std::PAH::_Debug_range(int *,int *,wchar_t const *,unsigned int) [c:\program files\microsoft visual studio 8\vc\include\xutility.:1368]
?_Uninit_copy@PAHPAHV?$allocator@H@std@@@std@@YAPAHPAH00AAV?$allocator@H@0@U_Scalar_ptr_iterator_tag@0@U_Range_checked_iterator_tag@0@@Z [c:\program files\microsoft visual studio 8\vc\include\memory.:124]
?unchecked_uninitialized_copy@PAHPAHV?$allocator@H@std@@@stdext@@YAPAHPAH00AAV?$allocator@H@std@@@Z [c:\program files\microsoft visual studio 8\vc\include\memory.:674]
?_Uninit_move@PAHPAHV?$allocator@H@std@@U_Undefined_move_tag@2@@std@@YAPAHPAH00AAV?$allocator@H@0@U_Undefined_move_tag@0@U_Range_checked_iterator_tag@0@@Z [c:\program files\microsoft visual studio 8\vc\include\memory.:160]
?_Unchecked_uninitialized_move@PAHPAHV?$allocator@H@std@@@stdext@@YAPAHPAH00AAV?$allocator@H@std@@@Z [c:\program files\microsoft visual studio 8\vc\include\memory.:694]
std::vector<int,class std::allocator<int> >::PAH::_Umove(int *,int *,int *) [c:\program files\microsoft visual studio 8\vc\include\vector.:1112]
std::vector<int,allocator<int>::std>::_Insert_n(_Vector_iterator<int,allocator<int>::std>::std,UINT,int const&) [c:\program files\microsoft visual studio 8\vc\include\vector.:1143]
std::vector<int,allocator<int>::std>::insert(_Vector_iterator<int,allocator<int>::std>::std,int const&) [c:\program files\microsoft visual studio 8\vc\include\vector.:854]
std::vector<int,allocator<int>::std>::push_back(int const&) [c:\program files\microsoft visual studio 8\vc\include\vector.:800]
main [c:\documents and settings\administrator\desktop\test\tst\test.cpp:22]
NOTE :-
Platform :- Windows XP..,
IDE :- Microsoft visual studion-2005
The following were the important settings I made in the project
C/C++-> General-> Debug-information-format-> Program database
C/C++-> Code generation-> Basic-runtime checks-> Default
Linker-> General -> Enable-incremental linking -> NO
Linker-> Command-Line-> /fixed:no
Any help/suggestions to solve this problems were most welcomed..,
with regards, Sathyanarayanan , Elvista
Comment