Author |
Topic |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Mar 08 2004 : 12:05:33 PM
|
using VAX 1219 and VS .NET 2003 in one of my C++ source files, i highlighted the lines:
long CLogListViewItem::GetCount() const
{
return m_pLogRecord->GetCount();
}
where the last line of code is the last line in the file. if i now press the / key to comment out this code, the cursor is placed at the begining of the first hightlighted line, but no /'s are inserted.
if i only select the first 3 lines of code, so that the last line in the file isnt hightlighted then / works.
there is code above this block.
even worse, if i highlight the first 3 lines in the file:
#ifndef FILE_LIST_VIEW_ITEM_H
#define FILE_LIST_VIEW_ITEM_H
where the first line is blank, and the use / to highlight this selection then these lines are left alone and the next 6 lines lines in the file are hightlighted and then commented out |
zen is the art of being at one with the two'ness |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Mar 08 2004 : 12:09:25 PM
|
i was switching between a .cpp and its .h while experimenting with this via alt_o
i have just found that i have my entire .h pasted in at the bottom of the .cpp file, all commented out.
i am 99.9% certain this wasn't there when i started, which suggests that VAX inserted the .h body into the .cpp |
zen is the art of being at one with the two'ness |
|
|
Stephen
Tomato Guru
United Kingdom
781 Posts |
Posted - Mar 08 2004 : 12:46:06 PM
|
There are a couple of bugs along these lines. I think both your bugs are covered in thread 1424, but thread 920 may also be related. |
Stephen Turner ClickTracks http://www.clicktracks.com/ Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Mar 08 2004 : 12:52:12 PM
|
thanks, that sounds the same
i have just tried to reproduce the code from the .h turning up in the .cpp, but it isnt happening on demand. very strange. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Mar 08 2004 : 7:55:41 PM
|
We can reproduce the problem with commenting of the last line in a file. Albeit low priority, it is on our list to fix.
Send more clues if a header appears at the bottom of your cpp. |
Whole Tomato Software, Inc. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Mar 09 2004 : 06:36:09 AM
|
thats fair i would agree that this isnt normally going to be a problem. i will keep an eye out for the header into cpp problem. |
zen is the art of being at one with the two'ness |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Mar 09 2004 : 6:05:38 PM
|
Just remember that the C Standard (and the C++ Standard, IIRC) REQUIRE the last line of a file to be blank. Not that most compilers follow this requirement...
|
Joe Pizzi |
|
|
|
Topic |
|