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
 Create From Usage glitch
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - Nov 16 2009 :  10:05:14 AM  Show Profile  Reply with Quote
I invoked Create From Usage on a new variable in a templated function in a templated class:



The font is Segoe UI, running VAX 1738 in VC6 in XP.

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Nov 16 2009 :  11:46:37 AM  Show Profile  Reply with Quote
Would you be able to post the sample code that shows this problem? I suspect the corrupt characters are due to a code problem, rather than a font problem. I have just tried this simple test case:

template <class T> class testTemplateArrayOperator
{
public:
	T* vector;
	T& operator[](int index) const
	{
		nFooNew = index;
		return vector[index];
	}
};

and I am not seeing any problems when I use Create From Usage on "nFooNew"

zen is the art of being at one with the two'ness
Go to Top of Page

Maxim
Ketchup Master

59 Posts

Posted - Nov 17 2009 :  10:43:41 AM  Show Profile  Reply with Quote
Try this:

template <class T>
class Foo
{
public:
	void Bar();
};

template <class T>
void Foo<T>::Bar()
{
	m_bat = 0;
}

...where m_bat is the usage we want to create from.

Edited by - Maxim on Nov 17 2009 10:45:05 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 17 2009 :  4:22:47 PM  Show Profile  Reply with Quote
Did you get something like this + the glitch when you tried the create usage refactoring on m_bat? I mean in this case DataObjectManager wasn't present, was it?



Windows XP SP3 doesn't contain Segoe UI. How did you install it? Did you install a theme, or did you change the settings manually? In former case can you please post a link to the theme? In the latter, I may need the font to reproduce this.
Go to Top of Page

Maxim
Ketchup Master

59 Posts

Posted - Dec 17 2010 :  12:27:21 PM  Show Profile  Reply with Quote
Sorry for not replying in over a year :) I'm still seeing this with the demo code I posted above, pasted into an unsaved file in a new instance of VS2008. It has the same weirdness regardless of the theme settings. I see this:



Spy++ reads the text as "&Member in FooT". That's apparently Unicode 0x000e and 0x000f.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Dec 17 2010 :  10:12:48 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=53427

I have no idea why accord was unable to reproduce this last time, but it is happening every time for me.

zen is the art of being at one with the two'ness
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