BBC BASIC for Windows
General >> General Board >> Bad program error http://bb4w.conforums.com/index.cgi?board=general&action=display&num=1240940468 Bad program error
Post by Michael on Apr 28th, 2009, 5:41pm
High, working on big project atm but unfortunatly, as i got to run it I get a bad program response and nothing runs at all. Also, when trying to load it (either via a window or via BBC Basic load button) i get 'invalid file format' despite it being .bbc. This has never happened before, just with this one file. Also, foolish me forgot to make backups, expecting BBC Basic to be its normal amazing.
Re: Bad program error
Post by admin on Apr 28th, 2009, 6:45pm
Quote:
Also, when trying to load it (either via a window or via BBC Basic load button) i get 'invalid file format' despite it being .bbc.
I have a program called REPAIR.BBC which can sometimes recover useful information from a damaged .BBC file, but obviously it depends on what's left! Have you checked the length of the file to see if it's about right? I'll upload the program to the Files area of the BB4W Yahoo! group in case it's useful in your case.
As to why it happened in the first place, I've never known BB4W corrupt a program. It's possible that your BASIC program has corrupted itself by 'poking' some data into memory between PAGE and TOP. I would therefore advise checking any uses of indirection (! or ?), or the assembler, to see if that's a possibility.
Richard.
Re: Bad program error
Post by Michael on Apr 29th, 2009, 5:44pm
I don't have a yahoo account...CBA to set one up, could you send it to Michael_Bohea@msn.com.
Thanks!
Also, is this error typical of someone who has only the demo version? or would I expect something else?
Will get full when I can throw enough cash together...
Re: Bad program error
Post by admin on Apr 29th, 2009, 10:24pm
Quote:
could you send it to Michael_Bohea@msn.com
No, I'd rather not as it would set a precedent. When this forum was set up it was stated that the Yahoo group would be used as a repository for files.
Quote:
Also, is this error typical of someone who has only the demo version? or would I expect something else?
It shouldn't make any difference. Anyway, you said you were working on a "big project" so how is that possible if you have only the trial version?
Richard.
Re: Bad program error
Post by Michael on Apr 30th, 2009, 4:24pm
oh well.
By 'big project' i meant big for the trial version
It was an early version so I can always start again XD
Thanks for your help anywho
Re: Bad program error
Post by KenDown on Mar 31st, 2016, 6:52pm
Hmmmm. This sounds remarkably like the problem I have encountered. *All* my .bbc programs became "invalid file format", which means that I don't think it is BB4W that is corrupting them but some external program - perhaps a virus checker or something. Anyway, I have written a utility that will recover the files, so if anyone else is faced with the same problem, contact me. kkdown@nwtv.co.uk