gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

OffTopic > I need help!!!!!!!!!!! This is driving me mad...

#108702 - OOPMan - Sat Nov 11, 2006 11:58 am

Okay, I'd post this in one of the coding related forums, but I'm not sure it's coding related...

I've been having bizarre, weird problem lately...

To sum it up in a nutshell, whenever I edit a text file and save, the last 3 lines or so of the text file are duplicated.

This has been causing me huge headches, as I'm trying to write code and edit makefiles and as a result my files are being borked...

The problem occurs no matter which tool I use. I've been editing C source files in Eclipse, Notepad++ and Programmers Notepad and the problem keeps happening.

It happens independant of whether the file in question is original or an editor of someone else's file.

Attempting to remove the added text has no effect, as the extra text reappears when the file is re-loaded.

The problem does not seem to affect MS-Word documents though.

I've scanned for viruses and spyware using both Avast and ZoneAlarm and have turned up nothing.

I've tried changing the file encoding options with no change.

Currently I'm running XP SP2.

This is driving me out of my mind! I'm completely unable to end any kind of source code on my system and I'm having no luck working out what the problem is.

Does anyone have any ideas at all, because my temper is fraying and my patience is wearing thin...

:-(

EDIT: If I remove the stray text using WordPad it does not reappear. Now I'm really confused!
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#108705 - Sausage Boy - Sat Nov 11, 2006 1:02 pm

Just add a couple of blank lines to the end of the file?
_________________
"no offense, but this is the gayest game ever"

#108708 - OOPMan - Sat Nov 11, 2006 2:07 pm

No, not blank lines. Duplicated lines. Basically the last three lines of actual text get duplicated. I tried "fooling" it with whitespace, to no avail.

I mentioned that editing with WordPard doesn't have this problem. I just tested VS2005 and that's also able to edit the files correctly without mangling the files.

The duplicated lines cause big problems. The C comiler complains about all kinds of things, thanks to extra } and the like. Make doesn't like makefiles with stray text in them either.

Whatever this is, it's not cool :-(

At least VS and WordPad seem okay. I'll try Netbeans next and see whether it also suffers...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#108714 - Sausage Boy - Sat Nov 11, 2006 4:18 pm

I'd just reinstall windows and start over... If you're coding C/C++, maybe a couple of lines with only ;'s could work.
_________________
"no offense, but this is the gayest game ever"

#108720 - tepples - Sat Nov 11, 2006 6:03 pm

chkdsk /f C: anyone?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#108728 - OOPMan - Sat Nov 11, 2006 6:20 pm

You can't guess how many times I've tried THAT tepples :-)

Baaa, what a hassle. Well, unless the problem starts happening in WordPad and VS I'll just leave it for now...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#108978 - Miked0801 - Mon Nov 13, 2006 7:09 pm

Cut and Paste buffer purging perhaps? A long shot I know. This is definately in the weird catagory...

#108979 - OOPMan - Mon Nov 13, 2006 7:22 pm

Hmmmmm, I discovered something rather interesting...

I was working with one of the problem files in Visual Studio, saved it and compiled with no problems. I then reloaded the file and wham, Visual Studio pops up a rather interesting message amounting to "The line terminators in this file are erratic, would you like VS to correct this?". To which I say yes.

The file didn't get b0rked, so I'm happy...

I suspected it might have something to do with line terminators, but altering this stuff in the other editors didn't seem to work...

Weird...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...