Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 strange maps...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ULeas
New Member

Ukraine
7 Posts

Posted - May 06 2006 :  1:11:54 PM  Show Profile  Reply with Quote
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.

There are 10 categories of people: those who understand binary numbers, and those who don't...

Edited by - ULeas on May 06 2006 1:39:32 PM

rhummer
Tomato Guru

USA
527 Posts

Posted - May 06 2006 :  1:35:05 PM  Show Profile  Reply with Quote
Screen shots would be useful, upload them to imageshack.us to link them here ;)

Do you have "Get contents from default intellisense" turned on or off?

I am seeing first and second listed when I do ip. ( With Get Contents from Default Intellisense off )



This is with Get Contents from Default Intellisense on )



Though I am seeing not all the valid data listed when I do ip.second->

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64


Edited by - rhummer on May 06 2006 1:54:49 PM
Go to Top of Page

ULeas
New Member

Ukraine
7 Posts

Posted - May 06 2006 :  2:08:50 PM  Show Profile  Reply with Quote
first of all, here are the pics:
(the strange one)


(the incorrect one)


rhummer, thanx a lot for the imageshack, i died trying to find a site like this one..

and the "Get contents from default intellisense" option was turned off, when i turned it on i got the corret result.

so is this the solution? and also, does the option mean that VA will not do it's own parsing any more?

There are 10 categories of people: those who understand binary numbers, and those who don't...
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - May 06 2006 :  3:54:28 PM  Show Profile  Reply with Quote
http://www.wholetomato.com/products/features/members.html?more=yes&goto=defaultIntellisense

Will explain what that option does.

But yes, that is the solution. That link will explain it, and no VAX will still do its own parsing.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64


Edited by - rhummer on May 06 2006 3:59:27 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000