Pelles C forum

Pelles C => General discussions => Topic started by: megafiddle on July 22, 2014, 11:22:22 pm

Title: Lost source file
Post by: megafiddle on July 22, 2014, 11:22:22 pm
Greetings, I just joined up here.

I was working on a project file with Pelles C 6.00.4. I closed the IDE when I was done.
When I restarted the IDE later, the .c source file appeared empty. The file was still on
the drive, however, with a size of about 5K, which is about the size it should be.

I looked at the file with debug, and it appears to be filled with zeros (00).

Is there something I did (or did not do that I should have) that might have caused this?
Or is it a bug?

Excellent program, nonetheless!

-
Title: Re: Lost source file
Post by: frankie on July 23, 2014, 03:58:16 pm
Welcome,
The PellesC 6.00.4 is a very old version.
Please download the latest version 8.00.19-RC5 (http://www.smorgasbordet.com/pellesc/download.htm).
Title: Re: Lost source file
Post by: megafiddle on July 24, 2014, 12:09:00 am
Ok, thanks. I am using XP on this computer, so I am going to try 7.00.

Title: Re: Lost source file
Post by: frankie on July 24, 2014, 10:39:47 am
you're welcome,
New release 8.00 can be installed on XP.
Title: Re: Lost source file
Post by: liut on July 25, 2014, 03:24:02 am
Hello, I met the similar issues on v7.0 when I was editing a C file but the computer shutdown or restart automatically. The solution is to look for the temp file on your 'temp' (or tmp) folder, usually you can find it out with a 'random' ext. name. Hope it's useful to you.
Title: Re: Lost source file
Post by: megafiddle on July 30, 2014, 11:42:54 pm
I can't seem to find a temp or tmp folder or file created by Pelles C.
Where should I look?

Also I tried installing 8.00 and got this message

''Pelles C 32-bit Edition supports Windows Vista/7/8 (X86 family).

Note! Windows XP is not officially supported nor tested, but probably works in general (except OpenMP).''


-
Title: Re: Lost source file
Post by: Bitbeisser on July 31, 2014, 12:57:24 am

Also I tried installing 8.00 and got this message

''Pelles C 32-bit Edition supports Windows Vista/7/8 (X86 family).

Note! Windows XP is not officially supported nor tested, but probably works in general (except OpenMP).''


-
And the problem with installing it is?...  :-\

Ralf
Title: Re: Lost source file
Post by: megafiddle on July 31, 2014, 02:25:35 am
I'm running XP. So I decided not to install it because of this:

"...Windows XP is not officially supported nor tested..."

Didn't want to add any potential new problems.

-
Title: Re: Lost source file
Post by: Bitbeisser on July 31, 2014, 03:16:04 am
I'm running XP. So I decided not to install it because of this:

"...Windows XP is not officially supported nor tested..."

Didn't want to add any potential new problems.

-
Pelle unfortunately decided to follow the common bad habit of considering XP dead just because of all the hype around M$ stopping support for it.

And the above doesn't say that it won't run on XP...

Ralf
Title: Re: Lost source file
Post by: megafiddle on August 01, 2014, 12:28:45 am
Thanks for the info. If that's the only concern, then I will try 8.00.

Any idea though, why a source file might turn to all zeros?

-

Title: Re: Lost source file
Post by: jj2007 on August 01, 2014, 08:47:54 am
I remember a recent post by Pelle saying XP is supported, but it seems he removed it, maybe to avoid raising unrealistic hopes.

Re all zeros: strange indeed. Looks like the file was opened but not written and closed properly. The golden rule in this case is: keep two USB sticks with your recent important sources, in a place distant from your PC (thieves like USB sticks, too); use stick A on Mo We Fr and stick B on all other days. This is to prevent that you "save" the all zeros file, and having no good copy left...
Title: Re: Lost source file
Post by: frankie on August 01, 2014, 08:53:32 am
V8.00 can be installed and works on XP.
Pelle will not give anymore support for specific problems or bugs related to XP only, he will continue to support and fix problems and bugs for all others systems (from VISTA on).
In future (maybe on V9.00?) he will completely remove support and it will be no more possible install the compiler on XP machines.
Title: Re: Lost source file
Post by: megafiddle on August 12, 2014, 09:16:48 am
I remember a recent post by Pelle saying XP is supported, but it seems he removed it, maybe to avoid raising unrealistic hopes.

Re all zeros: strange indeed. Looks like the file was opened but not written and closed properly. The golden rule in this case is: keep two USB sticks with your recent important sources, in a place distant from your PC (thieves like USB sticks, too); use stick A on Mo We Fr and stick B on all other days. This is to prevent that you "save" the all zeros file, and having no good copy left...

I used to use two alternating backups when I was writing software for a previous employer. 3.5" discs used to work very well.
I don't trust or use them at all any more. Other drives have been very reliable up till now. I lost a USB stick, but that may have
been an anomoly. My USB WD drives, backups on CD and DVD, have had no problems. But I think I will go back to alternating
backups.

V8.00 can be installed and works on XP.
Pelle will not give anymore support for specific problems or bugs related to XP only, he will continue to support and fix problems and bugs for all others systems (from VISTA on).
In future (maybe on V9.00?) he will completely remove support and it will be no more possible install the compiler on XP machines.

That is quite reasonable. I will be moving to Windows7 sometime in the near future.

-
Title: Re: Lost source file
Post by: megafiddle on January 30, 2015, 07:49:38 am
I believe I have found something related to the loss of the files.

I have been using an external USB drive for backup. On a couple occasions, I left the drive connected during startup and restart. I just lost a source file again, and noticed the external drive was left connect during a restart. It was right after the restart that the file was empty. I copied an old source text into the current c text file and restarted with the WD drive connected; and once again, the file became empty.

Apparently, my PC doesn't like starting or restarting with a USB hard drive connected. I can't say that the external drive itself is the problem, only that it's related somehow.

-
Title: Re: Lost source file
Post by: frankie on January 30, 2015, 08:58:59 am
Try to check again disabling the AntiVirus...
Title: Re: Lost source file
Post by: megafiddle on January 31, 2015, 06:53:25 am
Thanks, I'll try that.

I did notice something else:
If I set the desktop to "classic", it will change back to XP style if the external drive is connected during startup. Internet Explorer started up once with unusual colors also.

Ok, I tried this with no AntiVirus; the desktop is still being altered when the external drive is present. I don't want to expriment with my files, as I still don't know how extensive the problem is or exactly what is causing it.

The files on the external drives are fine. The files are being lost on the main internal drive. I have a couple of these external drives and would like to use them on my newer Windows 7 pc,  but I would like to be sure that the problem is not with the drives themselves.

-
Title: Re: Lost source file
Post by: czerny on January 31, 2015, 09:52:10 am
I did notice something else:
If I set the desktop to "classic", it will change back to XP style if the external drive is connected during startup.
I too have this problem with XP prof. sometimes. I have not found a cause yet.

Edit: To be clear: Not the problem with the zeroed source file but the change to XP style.
Title: Re: Lost source file
Post by: RKSJBeck on January 31, 2015, 10:20:43 am
I'm having a similar problem.  I do my development inside different VM's and after a recent "upgrade" to the hypervisor,  when I try to save a file to the shared drive, Pelles C fills the file with zeroes (0x00) and that's the end of that.  No other IDE I use, or text editor, suffers from the problem.  I have Pelles 'C', Microsoft VB, C++, C#, Pure BASIC, and Power BASIC installed along with Notepad++, and Multi-Edit.  No program other than Pelles is goofing up.  I have contacted the maker of the hypervisor and they have verified that they can reproduce the problem and are going to investigate, but I have also tried to get some information from Pelles to see what he is doing during a file save that no one else seems to be doing.
Hopefully this will get resolved because the new version of the hypervisor has some features I have been waiting for.
Title: Re: Lost source file
Post by: liut on March 25, 2015, 09:08:35 am
My suggestion is: once you meet this problem, please check the latest temp files (not .c file) in the 'temp' folder which defined in the environment variable 'Temp'. I believe you will find it there, unless you define this folder to a mem-driver...