File Missing - Reverse Engineer?
A short while ago I was just about finished programming my Tetris clone when I ran the program from Visual Studio, it kind of tweaked out and froze on my intro screen. I couldn''t get out of it so I hit ctl+alt+del, that didn''t work so I hit about every button combo including ctl+x. I eventually restarted my computer to find that the file containing all my code is gone, vanished, not anywhere (even the recycle bin). Is there a bug in a program somwhere, or was it me hitting goofy buttons and I deleted it by accident? If anything is there a way to reverse engineer my debug files(they are all still there) to get my code back? Please someone help me. I don''t want to have to go to my backup file from 2 days ago 8(
-Brad
quote: Original post by radishan
or was it me hitting goofy buttons and I deleted it by accident?
If you had the folder window open behind Visual Studio and the focus on that file and then you pressed:
ALT-TAB ; SHIFT-DEL ; ENTER
You could have deleted it. Get an UNDELETE APP RIGHT NOW!!
DONT CREATE ANY FILES, YOU COULD OVERWRITE THE DELETED FILE IF YOU DO. SWAP FILE CAN OVERWRITE IT AS WELL SO HURRY UP!
download.com - undelete apps
[edited by - xaxa on February 13, 2003 6:50:14 AM]
[size="2"]I like the Walrus best.
quote: Original post by xaxa
You could have deleted it. Get an UNDELETE APP RIGHT NOW!!
DONT CREATE ANY FILES, YOU COULD OVERWRITE THE DELETED FILE IF YOU DO. SWAP FILE CAN OVERWRITE IT AS WELL SO HURRY UP!
Of course, installing the application will create files... typical dilemma.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
LOL yes. Hopefully radishan will have multiple partitions on his hard drive...
[size="2"]I like the Walrus best.
quote: Original post by FrunyOriginal post by xaxa
You could have deleted it. Get an UNDELETE APP RIGHT NOW!!
DONT CREATE ANY FILES, YOU COULD OVERWRITE THE DELETED FILE IF YOU DO. SWAP FILE CAN OVERWRITE IT AS WELL SO HURRY UP!
quote:
Of course, installing the application will create files… typical dilemma.
You could make the floppies that the program will probably run from on another computer.
I have a copy of whatever the name of the powerquest program used to be. They were giving it away free last year, so I downloaded a copy (I think they were quitting making it or something). I used it to restore some stuff one time when I had my read-write shared folder from my windows PC mounted under linux, and I rm -rf 'ed the directory above where I mounted it to, DOH. It didn't get everything, actually it didn't get the one file we specifically were trying to find, but it got some stuff. I use read-only shares now, and I am careful to not mount stuff in stupid places .
Oh i just rememberd the name of the program Lost And Found. It might just be an old version they were giving away that I have, it runs off a few floppies. Probably only works with FAT32.
[edited by - compumatrix on February 13, 2003 9:02:40 AM]
Thanks for the advice but I was too quick to copy a few folders, etc., so my file is gone forever. If there is a way to get the code from all of the debug files I would love to hear it.
None that I am aware of. Keep looking.
[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
I had the same freaking thing happen! I was done with my C++ project (about 3 hours work, it wasn''t too hard) then I ran the program... MSVC++ crashed and a popup window came up to close it. I clicked close. Then I watched the window containing my source files, the files deleted right in front of my eyes. i swear, honestly. It left blank spots where my source files were. Damn microsoft. damn vc++. From now on, I''m coding with emacs and in linux if possible. The only thing I like about msvc++ is that it has the ''auto-fill'' feature where it shows you all possible methods to use, and it''s organized pretty nicely. theres no way to win
well I don''t mean to sound disgruntled, I''m just letting you know your not the only one this has happened too. Backing up files is the way to go. I need to look into CVS or write some script to back the shit up
peace
-brad
well I don''t mean to sound disgruntled, I''m just letting you know your not the only one this has happened too. Backing up files is the way to go. I need to look into CVS or write some script to back the shit up
peace
-brad
cha cha cha
Well, when VC goes down, it often takes you with it. I have numerous horror stories about lost code due to IDE crashes, but that''s not the point of this post. The fact is that the IDE provides features that are, to me, indispensible.
Granted, I could play a little safer and use Notepad and GCC, but having tried it, I can say with certainty that I''d much rather risk losing work here and there to not getting any work done (though your mileage with command-line stuff may vary).
And really, you don''t have to lose work. I make daily backups with a little command line app I wrote called Noah. It just asks what type of back up it''s doing (working/partial/broken), and copies all relevant files to a safe directory. Simple but effective.
Peace,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
Granted, I could play a little safer and use Notepad and GCC, but having tried it, I can say with certainty that I''d much rather risk losing work here and there to not getting any work done (though your mileage with command-line stuff may vary).
And really, you don''t have to lose work. I make daily backups with a little command line app I wrote called Noah. It just asks what type of back up it''s doing (working/partial/broken), and copies all relevant files to a safe directory. Simple but effective.
Peace,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[twitter]warrenm[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement