473,413 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Odd visual results from End [...] followed by double-quote

[This is a repost of a message that I sent to
microsoft.public.dotnet.vb.general on 16th December 2004; it looks
like this group is more active than that one, so there may be MVPs who
can read this and pass a bug report on to Microsoft if appropriate.]

I've just come across some slightly bizarre behaviour in VB.NET - if I
have some code like this:

Private Sub Fred()
End Sub

then put a " after Sub, and move to the next line, that whole line
(End Sub") changes. It looks like a CJK character at the start, and
then the other letters appear with varying background colours, with
some of them being blacked out.

If I then click back on the end of the line, and press any letter key
repeatedly (e.g. ddddddddd), the line changes each time I press the
key. Initially it's just random colour effects, but after about 35 key
presses I see the path to my source code folder. Another couple of key
presses, and the line changes to a random comment from elsewhere in
the file, and then other lines of code.

If I undo, or just press the Backspace key enough times, then I get
the original "End Sub" line back.

The same thing happens with End Class, #End Region, and probably most
other End statements (although not End If, for some reason). Maybe a
buffer overrun somewhere?

Anyway, it seems harmless enough, so if nothing else then it may amuse
people to see it in action.

John
Nov 21 '05 #1
6 845
John,

Which version of VS.NET are you running? I remember seeing some
similar bug in the 2002 release, but I believe it was fixed in 2003.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #2
Mattias,

"Mattias Sjögren" <ma********************@mvps.org> schrieb:
Which version of VS.NET are you running? I remember seeing some
similar bug in the 2002 release, but I believe it was fixed in 2003.


I am able to repro the bug in VB 2002, and I remember a similar bug
involving '#Region...#End Region'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
> Which version of VS.NET are you running? I remember seeing some
similar bug in the 2002 release, but I believe it was fixed in 2003.


This is happening in VS.NET 2003 (with SP1 for v1.1 of the .NET framework,
although that's probably not relevant). I've been able to duplicate it on 3
other PCs at work, and my home PC, so I don't think it's a machine specific
issue.

John
Nov 21 '05 #4
I am able to reproduce the bug in VS2003 as well.

Nov 21 '05 #5
"Chris" <du******@gmail.com> schrieb:
I am able to reproduce the bug in VS2003 as well.


I currently don't have my VS 2005 Beta 1 at hand, but I am curious if this
bug was fixed in the for this version...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6
I currently don't have my VS 2005 Beta 1 at hand, but I am curious if this
bug was fixed in the for this version...


Looks like it. In the December CTP release, I get a blue squiggly
under the " as expected.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: melih.onvural | last post by:
Group, I want to get into a remote server, tail a file, and see if the last line is an error or not. I think that I've figured out how to shell over and tail the file. I have the specific server...
11
by: Richard | last post by:
http://geocities.com/r_bullis/gallery2.html Validator 3 at w3c totally annhialates the page. It doesn't like comment tags, nor does it like "alt" not being used with img tags. While the jigsaw...
19
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
5
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
1
by: | last post by:
I cannot for the life of me get remove debugging to work. I continue to receive "Error while trying to run project: Unable to start debugging on the web server. Access is denied. Verify that you...
5
by: Patrick Olurotimi Ige | last post by:
Hi, I have VStudio.Net 2003 installed but can i install Visual Web Developer also on the same PC. My current .Net Frameork version is 1.1. Will the Visual Web Developer install ASP.NET 2.0? And...
0
by: cooljoel27 | last post by:
can any one of youll write a code in microsoft Visual basics for secure Hash algorithm please see additional information below (this is for my final year project) ALGORITHM  Append padding bits...
6
by: Avi | last post by:
I need to implement the following calculation: f = (a*b) + (c*d) where a,b,c,d are given double values and f is a double variable for the result I found out that using two different...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.