473,386 Members | 1,621 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,386 software developers and data experts.

I think I found a bug of .NET Framework, how to report?

There's not much here, my question is the subject...
Nov 16 '05 #1
11 1023
Well, here is another nice question:

How do you know you:
* Have a bug, not your own bad code. 99% of tehe so called bugs are NOT
bugs.
* It is not already known?

Otherwise you can post it here (and someone will pick it up and report it)
or go through PSS:

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
(CTO PowerNodes Ltd.)
---

Still waiting for ObjectSpaces? Try the EntityBroker today - more versatile,
more powerfull.
And something in use NOW. for the projects you have to deliver - NOW.
"FrzzMan" <Fr***************@vnOCzone.com> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
There's not much here, my question is the subject...

Nov 16 '05 #2
FrzzMan:

If you are sure that you really found a bug, posting it here will get it
noticed. Moreoever, each product has a product home page and I believe they
all have a "Submit a bug" link on them....
http://msdn.microsoft.com/vfoxpro/support/default.aspx is Foxpro's for
instance.

However, if you browse the various NG's , you'll see quite a few bugs being
reported. The overwhelming majority are either developer errors or the code
is doing what it's supposed to but the devloper is expeciting different
results. Posting bugs is very useful, but if you make such an announcement,
please make sure you've thoroughly tested it and are quite sure it's a bug,
making sure you read the documentation on it first. I know this sounds
obvious, but there are a LOT of bug reports that are actually built in
features or functionality explained fully in the documentation - or they are
bugs on the users part.

HTH,

Bill
"FrzzMan" <Fr***************@vnOCzone.com> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
There's not much here, my question is the subject...

Nov 16 '05 #3
FrzzMan wrote:
This is the code that expose the "bug" (I think)

string Data = "UTF-8 string"; // <-- Insert some *long* UTF-8 string
byte[] DataBytes = System.Text.Encoding.UTF8.GetBytes(Data);
string BackConvert = System.Text.Encoding.UTF8.GetString(DataBytes);

System.Console.WriteLine(Data == BackConvert);

System.IO.StreamWriter File = System.IO.File.CreateText("test.txt");
File.Write(Data + "\n" + BackConvert);
File.Close();

1. You did NOT write the "text.txt" file with this sample of code!
Because in your sample you use "\n" and test.txt contains "\n\r".

2. If I use your first string and do the same conversion to and from
bytes, then I have the same string.

3. Please provide a FULL working example!

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
Nov 16 '05 #4
Hi FrzzMan,

I tried your code and it produced the same exact string. Visual Studio
did however warn about this string containing Unicode characters that
might not be saved properly in the source file. Btw, I am using Windows
XP English version, Local settings set to Norwegian Bokmål, Visual Studio
..Net 2003

Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #5

"FrzzMan" <Fr***************@vnOCzone.com> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
There's not much here, my question is the subject...


You should not do this - "my question is the subject..."
Andreas Håkansson and n! will kill you for such posting.
See my post on 16/04.
Of course there is always possibility that n! and AH reaction to my post was
personal.

MH
Nov 16 '05 #6
I used your code and for me it always returns "true"

But let me suggest your one thing:

- never put not ascii-chars into source files!!! (better load it from some
resource-files)
- if you need to do this, then save as UNICODE!

Then it works.
If you save your source-files as plain ascii, it will not work.

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
Nov 16 '05 #7
Still, I get the same result and "true".
I cannot however test the last string as I don't have the LZO stuff, but
considering this is basically the same as the second one (being compressed
and then decompressed) I would expect the same result.

Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #8
n!
> > There's not much here, my question is the subject...

You should not do this - "my question is the subject..."
Andreas Håkansson and n! will kill you for such posting.
See my post on 16/04.
Of course there is always possibility that n! and AH reaction to my post was personal.


lol :)

I do not want to keep going over this, but I also don't want you thinking I
tried to make any attack on you (and Andreas didn't either). The problem
wasn't you or the 'read the subject' line content alone. But the fact that
your subject didn't convey enough information to provide a useful answer
without guessing what you wanted. FWIW I was actually trying to help you....

n!
Nov 16 '05 #9
:)

It's ok, I didn't think that you want to attack me, in fact at that moment I don't know what to say, but in my case, at least my subject provice
enough information :D

Thanks anyway...

n! wrote:
There's not much here, my question is the subject...


You should not do this - "my question is the subject..."
Andreas H?kansson and n! will kill you for such posting.
See my post on 16/04.
Of course there is always possibility that n! and AH reaction to my post


was
personal.

lol :)

I do not want to keep going over this, but I also don't want you thinking I
tried to make any attack on you (and Andreas didn't either). The problem
wasn't you or the 'read the subject' line content alone. But the fact that
your subject didn't convey enough information to provide a useful answer
without guessing what you wanted. FWIW I was actually trying to help you....

n!

Nov 16 '05 #10
Thank you and Morten Wennevik, I think it is a bug because I did try my
code on 4 machine in total. They all give me the "False", hmmm... btw if
you are all got "True" then I think I have to re-check my code (altho I
checked it hundreds times)...

About your post, Jochen...
- never put not ascii-chars into source files!!! (better load it from some resource-files)
Can you show me how to do this? In fact, I have an XML file that I want
to hardcode to the app, but I have to manually build a string to produce
the XML content (escape every special strings... etc...), I've just
switched to C#, I have much exp with PHP tho :D
- if you need to do this, then save as UNICODE! I did save my source as UTF-8 :(

Jochen Kalmbach wrote:
I used your code and for me it always returns "true"

But let me suggest your one thing:

- never put not ascii-chars into source files!!! (better load it from some
resource-files)
- if you need to do this, then save as UNICODE!

Then it works.
If you save your source-files as plain ascii, it will not work.

Nov 16 '05 #11
FrzzMan wrote:
- never put not ascii-chars into source files!!! (better load it
from

some
resource-files)


Can you show me how to do this? In fact, I have an XML file that I
want to hardcode to the app, but I have to manually build a string to
produce the XML content (escape every special strings... etc...), I've
just switched to C#, I have much exp with PHP tho :D


"Project | Add New Item... | Assembly Resource File"
Add this file with the apropriate name,
tehn your System.Resources.ResourceManager to read the string from the
recourse.
--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp

Do you need daily reports from your server?
http://sourceforge.net/projects/srvreport/
Nov 16 '05 #12

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

Similar topics

0
by: mex | last post by:
Dear developer, I have face a problem and I do need your help. I have a server that installed .Net Framework, SQL server and IIS. All of these component work well. I need to make report to show...
4
by: anon | last post by:
IIS is reporting "SmartNav.htm" and "SmartNav.js" in the /aspnet_client/system_web/1_1_4322/ directory on the web server as FILE NOT FOUND 404 errors. Does anyone know why IIS is report this...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
4
by: BookerW | last post by:
I am not sure which forum I should post this on, but here is the problem. I have a front end web application(VB) on asp,net 1.1 framework. Inside of the code, I have the following lines to...
1
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
Hi, at the moment I have a batch file which builds a lot of projects. A typical line in the batch file would be: CALL "C:\Program Files\Microsoft Visual Studio .NET...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.