Author |
Topic: Problem saving... (Read 879 times) |
|
James
New Member
member is offline
Posts: 42
|
|
Problem saving...
« Thread started on: Apr 8th, 2015, 06:04am » |
|
Hi,
Thanks so much for LBB!!! 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...
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Problem saving...
« Reply #1 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.
|
|
|
|
James
New Member
member is offline
Posts: 42
|
|
Re: Problem saving...
« Reply #2 on: Apr 8th, 2015, 1:45pm » |
|
Thanks for helping me out with that error code meaning.
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...
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Problem saving...
« Reply #3 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.
|
|
Logged
|
|
|
|
James
New Member
member is offline
Posts: 42
|
|
Re: Problem saving...
« Reply #4 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... Maybe I have a hardware issue?
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Problem saving...
« Reply #5 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.
|
|
Logged
|
|
|
|
James
New Member
member is offline
Posts: 42
|
|
Re: Problem saving...
« Reply #6 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!
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Problem saving...
« Reply #7 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.
|
|
Logged
|
|
|
|
James
New Member
member is offline
Posts: 42
|
|
Re: Problem saving...
« Reply #8 on: Apr 13th, 2015, 1:39pm » |
|
Thank you
|
|
Logged
|
|
|
|
|