Hi..,
While executing the following code in purifier.., -
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";
-
}
-
I got the following errors.., - 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
3 2790
I tried your code on mingw and it came up with no problem. Too lazy to try it using MSVC 2005. Sounds like you installed MSVC incorrectly.
Try importing your project into codeblocks (you may have to install it first : ). Then first try compiling it using MinGW compiler. Then, using codeblocks, set the compiler to Visual C++.NET 2005 and see what your results are.
ps. If it's a basic console program you should be ok, but if using MFC or something which mingw doesn't support, it will produce errors about missing .h files and such.
Hi,
When using purify it may show some errors with the system libraries and i have hve seen it many a times.
I think you cna ignore those as you cant do anything about it unless you use a different compiler .
Raghuram
Thank you Mr.Raghu..,
I faced the problem in my component..,
I simulated the same error in the above mentioned test code..,
I proceed further & will get back if any more problem occurs in the SOA..,
with regards, Sathyan
Hi,
When using purify it may show some errors with the system libraries and i have hve seen it many a times.
I think you cna ignore those as you cant do anything about it unless you use a different compiler .
Raghuram
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Eduardo Hercos Rodrigues |
last post by:
Hi,
How to print directly from PHP code using CUPS?
Thanks,
"Eduardo Hercos Rodrigues"
|
by: Jim M |
last post by:
I hate to pass data on the query string. Is there a way to pass data to the
serverside vb code using the object in showmodaldialog.
var myObject = new Object();
var retVal = new Object();...
|
by: cijo |
last post by:
Hi,
My program has a pointer to a structure declared locally inside a
function to which memory is allocated using malloc and reallocated
later using realloc, and when I try to free the memory at...
|
by: Martin |
last post by:
Hello, I haven't found any answer on this - if it is possible or not.
I have a PCI card with a memory on it. I have also a driver (written in
C++) that maps the memory from the card to user...
|
by: jmbn2k |
last post by:
Hi
Can anyone pls teme how to allocate memory using malloc in a 3 D diemensional array.............
|
by: jmbn2k |
last post by:
Hii
Can anyone pls teme...how to allocate memory using malloc in a 3 D dimensional array........
|
by: shsingh |
last post by:
I have a class A containing some map as data variables. I creat an
object of class A on heap by allocatiing memory by using "malloc". This
will return me the required memory but the object is not...
|
by: ApexData |
last post by:
I have a Split Database. FE / BE.
It has been working fine, on a server for months. The BE exists in a
secure folder used by 5 users who have full rights to the
application. A number of other...
|
by: =?Utf-8?B?S2luZXRpYyBKdW1wIEFwcGxpZmUgZm9yIC5ORVQg |
last post by:
Refactor .NET code using Visual Studio and Refactor! Pro
Modifying the existing source code without changing its functionality is
called refactoring of Source Code. Visual Studio gives us a lots of...
|
by: pghantasala |
last post by:
How to get available physical memory using javascript NOT USING WMI ?? any other way?
I need to achieve this by using javascript/vbscript and I cannot use WMI. Please let me know the possibilities.
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |