VA_X.dll file version 10.2.1445.0 built 2006.04.12
Licensed to:
VA X:
VA.NET 7.1:
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;
WinXP SP2 Professional.
i have found out a strange thing when i used std::map in my project. To check the error i have created a new project and copied the part of the code that gives this error, and the error appeared again.
The symptom is the following: the members of an iterator-bool pair, that is returned by the method map<...>::insert(...) aren't shown correctly. here is the code (from a console application i have created for test, but the data types are those i need in the original project, with other data types i don't get the error):
#include "stdafx.h"
#include "vatest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// The one and only application object
CWinApp theApp;
using namespace std;
#include <map>
class TSrcData {
public:
CString name;
bool checked;
CWnd *hWnd;
TSrcData(const char * n = "", bool c = false){
name = n;
checked = c;
hWnd = 0;
};
TSrcData(const TSrcData & src){
name = src.name;
checked = src.checked;
hWnd = src.hWnd;
};
~TSrcData(){
if(hWnd)
delete hWnd;
};
TSrcData & operator=(TSrcData& right){
name = right.name;
checked = right.checked;
hWnd = right.hWnd;
return *this;
};
};
typedef std::map< int, TSrcData > TSrcMap;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;
// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\\n"));
nRetCode = 1;
}
else
{
TSrcMap::_Pairib ip;
TSrcMap src_map;
int ID = 5;
TSrcData sd("name",true);
ip = src_map.insert(TSrcMap::value_type(ID,sd));
if(ip./* here the member list is strange */second){
ip.first->/*here the member list is just incorrect*/second./*not saying about TSrcData members*/;
}
}
return nRetCode;
}
}
return nRetCode;
}
i have made some screenshots, but i don't know jet how to insert them...
P.S. the screenshots are sent to the support with the id of this topic.