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
 Wrongly coloured code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Feb 10 2004 :  03:17:14 AM  Show Profile
Hello all,

I want to report some wrongly coloured code.

I have some code like:
bool Function(int someInt)
{
  // ...
  bool initial;
  // ...
  char data[4096];
  // ...
  if (initial) {
    // ...
    char data2[4096];
    // ...
    strcpy(data, data2); // Watch these two variables
    // ...
  }
  else {
    // ...
  }
  //...
  return true;
}
When I scroll to the position of the strcpy, I see that data is coloured blue, like a keyword or a type, and data2 is coloured gray, as it is supposed to be coloured.
When I switch with ALT-TAB to another (full screen) application and I switch back, both variables will be coloured gray.
When I then press PgUp and then PgDown, the two variables are coloured blue and gray again.
Or instead of pressing PgUp and PgDown I can call a tooltip from two or three lines above this data, the tooltip pops up. When it disappears again (maybe after clicking upon it) the code that was hidden under the tooltip is coloured blue now. Often you'll see halfly coloured characters then.

I hope the Whole Tomato team can do something about it.
Thank you.

With kind regards,
Patrick Luja

I'm using VA_X.dll version 10.0.1215.0 and font Courier New (13 pixels)

Edited by - PatLuja on Feb 10 2004 03:38:02 AM

[email protected]
Senior Member

28 Posts

Posted - Feb 10 2004 :  08:14:44 AM  Show Profile
This problem occurs with defines for me.
Most defines are gray when a window is not selected.
When I select the window, they turn magenta (which is the proper colour for defines).
Go to Top of Page

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Feb 12 2004 :  02:40:28 AM  Show Profile
Hello,

I must say you're right. I've seen it with defines often.
But sometimes I notice it also with normal variables.

Whole Tomato team, does it matter that the name data2 contains the name data?

I hope you find a solution to this bug.

With kind regards,
Patrick Luja
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Aug 05 2004 :  2:05:22 PM  Show Profile
quote:
Originally posted by patluja

Whole Tomato team, does it matter that the name data2 contains the name data?


It's more like data is a UNION defined somewhere in the headers by Microsoft.

Did this:
bool Function(int someInt)
{
	data test=0;
	// ...
	bool initial;
	// ...
	//char data[4096];
	// ...
	if (initial) {
		// ...
		char dita2[4096];
		// ...
		strcpy(data, dita2); // Watch these two variables
		// ...
	}
	else {
		// ...
	}
	//...
	return true;
}


(I even called your data2 "dita2" to see if you're right).

Hovering over data test=0;, the VA View shows that data is a member of _NLA_BLOB, which is a typedef'd struct.

I believe this is already covered with
case=192


Edited by - WannabeeDeveloper on Aug 05 2004 2:06:28 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000