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
 Broken refactoring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pk_asw
Ketchup Master

Czech Republic
66 Posts

Posted - Aug 24 2011 :  07:39:26 AM  Show Profile  Reply with Quote
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;
}

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 24 2011 :  8:03:29 PM  Show Profile  Reply with Quote
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;
}
Go to Top of Page

pk_asw
Ketchup Master

Czech Republic
66 Posts

Posted - Aug 25 2011 :  02:32:09 AM  Show Profile  Reply with Quote
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
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 26 2011 :  03:33:54 AM  Show Profile  Reply with Quote
I am seeing the same effect here:

case=60826

Good work, very nice catch!
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2011 :  11:18:40 PM  Show Profile  Reply with Quote
case=60826 is fixed in build 1859

Whole Tomato Software, Inc.
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