Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Broken refactoring

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
pk_asw Posted - Aug 24 2011 : 07:39:26 AM
Hi,

[Visual Assist X 10.6.1854.0, VS 2008, Win7]

if you delete the red line, then you can resolve TEST struct variables (when you press "." you can see a/b variables). If you leave the read line in source code, then VA isn't able to offer TEST's variables.

Thanks,
Petr Kurtin


#define CONFIG_ENABLE_SNXREG            0x00000001	// enable registry virtualization
#define CONFIG_ENABLE_SAFEZONE_SANDBOX  0x00400000	// enable SafeZone virtualization

#define CONFIG_DEFAULT	CONFIG_ENABLE_SNXREG | \			/*CONFIG_ENABLE_OBJ_HOOKS | CONFIG_ENABLE_OBJ_LOGGING | \\*/ \\
			CONFIG_ENABLE_SAFEZONE_SANDBOX

typedef struct _TEST {
	int a;
	int b;
} TEST, *PTEST;

TEST test = {0};

int APIENTRY _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow )
{
	test.

	return 0;
}
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 04 2011 : 11:18:40 PM
case=60826 is fixed in build 1859
accord Posted - Aug 26 2011 : 03:33:54 AM
I am seeing the same effect here:

case=60826

Good work, very nice catch!
pk_asw Posted - Aug 25 2011 : 02:32:09 AM
I created a Win32 example solution, used your sample code, but I got the same behavior.

However, I simplified the example and found out the problem was caused by parsing this character:
/*CONFIG_ENABLE_OBJ_HOOKS | CONFIG_ENABLE_OBJ_LOGGING | \\*/ \\
if I remove it, it works.

Here is new simplified code:
#define CONFIG_ENABLE_SNXREG            0x00000001	// enable registry virtualization
#define CONFIG_ENABLE_SAFEZONE_SANDBOX  0x00400000	// enable SafeZone virtualization

#define CONFIG_DEFAULT	CONFIG_ENABLE_SNXREG | \	/*CONFIG_ENABLE_OBJ_HOOKS | CONFIG_ENABLE_OBJ_LOGGING | \\*/ \	CONFIG_ENABLE_SAFEZONE_SANDBOX

int aa;
aa


now, if I click on "aa" variable, I see it was unresolved => empty combobox:


now if I remove the problematic char, it was resolved now:


Thanks,
Petr
accord Posted - Aug 24 2011 : 8:03:29 PM
I got interesting results. Basically, I wasn't able to reproduce this problem. The problem only happens for me when I paste your snippet to a test project, so _tWinMain got duplicated which is kind of invalid. Can you please paste the following to a clean new win32 test project to see if it makes any difference for you?

#define CONFIG_ENABLE_SNXREG            0x00000001	// enable registry virtualization
#define CONFIG_ENABLE_SAFEZONE_SANDBOX  0x00400000	// enable SafeZone virtualization

#define CONFIG_DEFAULT	CONFIG_ENABLE_SNXREG | \			/*CONFIG_ENABLE_OBJ_HOOKS | CONFIG_ENABLE_OBJ_LOGGING | \\*/ \			CONFIG_ENABLE_SAFEZONE_SANDBOX

typedef struct _TEST {
	int a;
	int b;
} TEST, *PTEST;

TEST test = {0};

void func()
{
	test.

	return 0;
}

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000