Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)

Uninitialized memory access

Sebastian_L_
Beginner
169 Views

Hi~

 

I'm using Inspector XE 2017 Update4 to detect memory problem in my application. But I find a strange problem. Even my code is very simple. Look below.

 
 
 
#include "stdafx.h"
#include <iostream>
 
int main()
{
int v1 = 0;
 
std::cin >> v1;
 
    return 0;
}
 
 
 
My IDE is VS2015, the Inspector XE 2017 keeps telling me that I accessed uninitialized memory with "std::cin >> v1". Actually, I've initialized it, so I don't know where the problem is.
 
0 Kudos
0 Replies
Reply