STL bug in VS.NET 2002
From: Antonio Maiorano (maiorano_at_videotron.ca)
Date: 11/08/03
- Next message: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Previous message: Bruce: "Re: Need help with a simple program"
- Next in thread: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Reply: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Reply: Mike Wahler: "Re: STL bug in VS.NET 2002"
- Reply: P.J. Plauger: "Re: STL bug in VS.NET 2002"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 8 Nov 2003 12:38:14 -0500
Hi everyone,
I use Visual Studio .NET 2002 right now, and I discovered a bug last night
that I have found few references to on the internet. Basically, if you
allocated a null-terminated char array that is 16 bytes or longer to
std::string, it stores garbage into it:
std::string s = "1234567890123456";
I tried this on .NET 2003 at work, and this bug has been fixed. Indeed, I
stepped into the string code, and found the difference somewhere in
<xstring>.
Anyway, my question is: what do I do? Do I really have to remove 2002 and
install 2003? Is there an bug-free STL implementation that I can download
somewhere and use instead? I have found no mention of this bug on M$ website
(big surprise).
Thank you for your time,
Tony
- Next message: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Previous message: Bruce: "Re: Need help with a simple program"
- Next in thread: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Reply: Thore Karlsen: "Re: STL bug in VS.NET 2002"
- Reply: Mike Wahler: "Re: STL bug in VS.NET 2002"
- Reply: P.J. Plauger: "Re: STL bug in VS.NET 2002"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|