Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to recover corrupted file (Read 3434 times)
dhanux
Newbies
*
Offline


Posts: 6
Joined: Apr 20th, 2017
how to recover corrupted file
Apr 20th, 2017 at 5:23am
Print Post  
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
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how to recover corrupted file
Reply #1 - Apr 20th, 2017 at 7:30am
Print Post  
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

  
Back to top
WWW  
IP Logged
 
dhanux
Newbies
*
Offline


Posts: 6
Joined: Apr 20th, 2017
Re: how to recover corrupted file
Reply #2 - Apr 20th, 2017 at 8:03am
Print Post  
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?  Cry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how to recover corrupted file
Reply #3 - Apr 20th, 2017 at 8:48am
Print Post  
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.

  
Back to top
WWW  
IP Logged
 
dhanux
Newbies
*
Offline


Posts: 6
Joined: Apr 20th, 2017
Re: how to recover corrupted file
Reply #4 - Apr 21st, 2017 at 4:55am
Print Post  
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.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint