Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create From Usage glitch

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
Maxim Posted - Nov 16 2009 : 10:05:14 AM
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.
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 17 2010 : 10:12:48 PM
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.
Maxim Posted - Dec 17 2010 : 12:27:21 PM
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.
accord Posted - Nov 17 2009 : 4:22:47 PM
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.
Maxim Posted - Nov 17 2009 : 10:43:41 AM
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.
feline Posted - Nov 16 2009 : 11:46:37 AM
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"

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