Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / December 2004

Tip: Looking for answers? Try searching our database.

Interesting .NET bug - cpp file corrupted

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sanjay - 14 Dec 2004 16:29 GMT
Hello,
This problem has surfaced on enough occasions to now be put down as an IDE
bug.

I am working within .NET IDE (sp1) on a standard c++ project. The files are
on a remote server.
It often turns out that a perfectly normal compile ends up generating a
large number of errors and on closer inspection reveals that one of the .cpp
files have been corrupted on the last 3-4 lines. The data is replaced by
ASCII characters as shown in the bitmap.
It has happened several times to different .cpp files. Please take a look at
the attached screenshot.

The system is running XP SP2, server is a samba server, no viruses on either
system.

Why is this happening?

Thanks very much for any suggestions!
Steve McLellan - 14 Dec 2004 16:39 GMT
Hi,

Don't know exactly what the characters you're getting are, but we've had
problems like this with files that have been committed into CVS with bizarre
hidden characters in them (the problem mainly manifested itself when files
were edited in XCode on one of our Macs which had some odd keybindings set
up). This resulted in unusual compile errors after checkouts on other
machines. The characters weren't visible, but typically they were EOFs or
broken carriage returns. Is the problem always in the same file? Is the file
being edited by any other developers?

HTH,

Steve

> Hello,
> This problem has surfaced on enough occasions to now be put down as an IDE
[quoted text clipped - 19 lines]
>
> Thanks very much for any suggestions!
Sanjay - 15 Dec 2004 09:01 GMT
Hi Steve,

It could just as well be what you describe, I am also using cvs and the
files live on a smb server. However it occurs even without using cvs, no one
else is editing the files either.
It is not always the same file, however the file always loses the last 3-4
lines of code at the bottom end.

The characters im seeing are just squares.

Thanks again!

Sanjay

> Hi,
>
[quoted text clipped - 34 lines]
> >
> > Thanks very much for any suggestions!
Steve McLellan - 15 Dec 2004 10:40 GMT
Hi,

We've never had the problem on a single machine; it has happened just
transferring files (that have been saved on the afflicted Mac) to another
computer over the LAN directly. I wonder whether you have any language or
line ending settings that could cause this. Squares are usually extended
ASCII characters that are unprintable with the current language set, or
ASCII values that aren't printable.

If the issue's cropping up without files changing at all (e.g. you open
Visual Studio, hit Build and something gets corrupted) then it could be that
something's corrupted the IDE. Have you tried creating a small project to
try and reproduce the problem? Apart from that, reinstalling VS is a
probable (tho drastic) solution. Maybe somebody else will reply that's seen
this happen in these circumstances.

Sorry I can't be more help, good luck,

Steve

> Hi Steve,
>
[quoted text clipped - 56 lines]
>> >
>> > Thanks very much for any suggestions!
Sanjay - 15 Dec 2004 17:23 GMT
I see what you're saying Steve!

I had different header files affected today. It does not seem to be a
language/unprintable character scenario as only some garbage is seen, rest of
the lines are completely lost...as in the file simply ends and the last few
lines of code are completely lost. This happens to both header and cpp files.

This is now a bit of a bother really ! :)

Thanks though,
Sanjay

> Hi,
>
[quoted text clipped - 76 lines]
> >> >
> >> > Thanks very much for any suggestions!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.