Sometimes I can't debug or build my application in Visual C++ 2008 EE, because Sonar Activity block my build file.
For example:
#include <iostream>
#include <string>
using namespace std;
class CA
{
private:
string napisCA;
public:
void wypisz();
CA(string napis) : napisCA(napis) { } //lista inicjalizacyjna
};
void CA::wypisz()
{
cout << napisCA << endl;
}
int main()
{
CA obiekt1("obiekt1");
CA obiekt2("obiekt2");
cout << "*****************************" << endl;
cout << "Wartosc obiektu1: " << endl;
obiekt1.wypisz();
cout << "*****************************" << endl << endl;
cout << "*****************************" << endl;
cout << "Wartosc obiektu2: " << endl;
obiekt2.wypisz();
cout << "*****************************" << endl << endl << endl;
// ____________________Przypisanie obiektu1 do obiektu2__________________________________
cout << "/////////////////////////////" << endl << endl;
obiekt1 = obiekt2;
cout << "*****************************" << endl;
cout << "Wartosc obiektu1: " << endl; // wypisze "obiekt2"
obiekt1.wypisz();
cout << "*****************************" << endl << endl;
cout << "*****************************" << endl;
cout << "Wartosc obiektu2: " << endl;
obiekt2.wypisz();
cout << "*****************************" << endl << endl << endl;
system("pause");
return 0;
}
This is not a security thread for my computer. :)
NAV version: 17.1.0.19. I have this problem also in older version.
Screen shot: http://img163.imageshack.us/i/errorz.png/