VS Arduino
Visual Micro >> General Board >> how to recover corrupted file
https://www.visualmicro.com/forums/YaBB.pl?num=1492665803

Message started by dhanux on Apr 20th, 2017 at 5:23am

Title: how to recover corrupted file
Post by dhanux on Apr 20th, 2017 at 5:23am
Atmel Studio 7  ver: 7.0.1188
Arduino ver 1.8.1

Project .ino file is currupterd. when i try to open in , windows ask to choose a software to open it. This project was coded with visual micro

when i open it with Notepad++ it shows only NUL
curuption.png

Please help

curuption.png ( 135 KB | 1 Download )

Title: Re: how to recover corrupted file
Post by Visual Micro on Apr 20th, 2017 at 7:30am
Hi,

That's not much fun. Visual Micro doesn't write back to project sources so you should look for the cause. I haven't heard of this before in any application.

If you attempted to build the project prior to the issue then there will be a UniversalBox.cpp in the temp build folder that contains all the .ino code. The build folder will be in your windows temp folder windowsTemp/VMBuilds/UniversalBox/Uno/Debug


Title: Re: how to recover corrupted file
Post by dhanux on Apr 20th, 2017 at 8:03am
Sir, Thanks for response.

I checked the location and the file was found but its also corrupted.

My computer faced to a blackout due to a unexpected power cut during the compilation of this .ino file last time. That was the reason to corrupt this file. If Visualmicro don't write back to the source files this may be due to the windows file system malfunction due to the power cut?  is there anything that i can do to recover this file?  :'(   

Title: Re: how to recover corrupted file
Post by Visual Micro on Apr 20th, 2017 at 8:48am
Hi,

Sorry to hear that. Yes I guess it was windows. I can't think of another way to restore the file. Visual Micro does not make copies other than in the build folder.


Title: Re: how to recover corrupted file
Post by dhanux on Apr 21st, 2017 at 4:55am
Thanks for the help. I found an old version of my corrupted  file in VMbuilts folder that was compile the for another arduino board . something is better that nothing.  :)

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.