LB Booster
IDE and Compiler >> Integrated development environment >> Problem saving...
http://lbb.conforums.com/index.cgi?board=ide&action=display&num=1428473086

Problem saving...
Post by James on Apr 8th, 2015, 06:04am

Hi, smiley

Thanks so much for LBB!!! cool And also the code you've made for me, Richard!

For some reason I'm having a challenge saving my program, It crashes with an internal error 189? I think that's what it said.

But before, when I've been coding in VIM and compiling like this:

Press colon,

!LBB -c-a-m %

It was working fine...

huh
Re: Problem saving...
Post by Richard Russell on Apr 8th, 2015, 12:00pm

on Apr 8th, 2015, 06:04am, James wrote:
For some reason I'm having a challenge saving my program, It crashes with an internal error 189?

That's 'Access denied'. It means you are trying to save to a place where you don't have write access, or there's an existing file with the same name which is read-only or locked. If it's an EXE, check in Task Manager that there's not a copy still running 'invisibly'.

Richard.

Re: Problem saving...
Post by James on Apr 8th, 2015, 1:45pm

Thanks for helping me out with that error code meaning. smiley

One more thing, I was having trouble embedding a temporary file in the exe... You know, the option to include a file at the last minute... cool
Re: Problem saving...
Post by Richard Russell on Apr 10th, 2015, 08:29am

on Apr 8th, 2015, 1:45pm, James wrote:
I was having trouble embedding a temporary file in the exe...

Are you still having a problem? It works for me.

Richard.

Re: Problem saving...
Post by James on Apr 10th, 2015, 3:18pm

Yes sir, for some reason when I add temp file, it doesn't show up in the list or upon running executable... huh Maybe I have a hardware issue?
Re: Problem saving...
Post by Richard Russell on Apr 10th, 2015, 4:55pm

on Apr 10th, 2015, 3:18pm, James wrote:
for some reason when I add temp file, it doesn't show up in the list or upon running executable

I think you have probably misunderstood how this facility works. In order to successfully embed a temporary file it must already be in the Temp folder, or in a subdirectory of the Temp folder. You cannot navigate to a different place in the file system and select a file there.

So you must first copy the file into the Temp folder, or a subdirectory (you will need to do that anyway in order to test your program in the IDE, of course) and then, when you compile your program, select that file to be embedded.

Is that what you are doing?

Because the file must already be there when the program is compiled, to check that the embedding worked correctly you must either delete it before running the EXE, or run the EXE on a different PC.

Richard.
Re: Problem saving...
Post by James on Apr 11th, 2015, 05:51am

Thank you, sir, for your support!

Actually, I was just putting it right beside the .bas file! So now I understand! I can put it in the system temp folder, and then it'll embed.

Great! grin
Re: Problem saving...
Post by Richard Russell on Apr 11th, 2015, 07:16am

on Apr 11th, 2015, 05:51am, James wrote:
Actually, I was just putting it right beside the .bas file!

Of course you can embed a file there too - that's what the Add (rather than Add Temp) button does! But when you run the program the file is extracted to the same folder as the EXE, not the Temp folder.

When you click on Add or Add Temp the file selector opens in the appropriate place. You may need to navigate into a subdirectory to select the resource file(s), but not anywhere else.

Richard.
Re: Problem saving...
Post by James on Apr 13th, 2015, 1:39pm

Thank you smiley