|
Post by libertylover on Mar 7, 2007 14:57:26 GMT -5
Hi,
I am so glad there is a forum for this product!
I have found that in order to "Create application" within Liberty Basic 4.03 it is necessary to make the TKN file from the Workshop 4.8.2 menu "Make TKN F6" which can be found under the "Liberty Basic" menu item in the Workshop.
I hope that is not too confusing!
Put another way, if I use the "Make *.TKN File" command under the "Run" menu of Liberty Basic, and then use the "Create Application Shift+F6" option under the same "Run" menu of Liberty Basic, I get an error: "OS Error: The system cannot find the file specified".
Also, I compared the TKN files produced by the Workshop and by Liberty Basic... and they are slightly different.
I have done this several times - even moved my .bas file to another disk and tried to create the .exe file - and it is quite consistent: I have to make the TKN from the Workshop menu, then run Liberty Basic from the Workshop menu, load my .bas file and run the "Create Application" from Liberty Basic. It's almost as if the TKN from LB is not compatible, but the one from the Workshop is.
Or maybe there's another explanation - the only thing I can think of the paths not set up correctly in LB, but I can't see any to set up.
Any comments greatly appreciated!
|
|
|
Post by Alyce Watson on Mar 8, 2007 6:44:06 GMT -5
Check your filepaths in the Options dialog. Perhaps you updated Liberty BASIC and did not update the paths in LBW? LBW simply calls your copy of Liberty BASIC to make or run a TKN, so there should be absolutely no difference.
|
|
|
Post by libertylover on Mar 8, 2007 15:11:44 GMT -5
Thanks for your reply Alyce.
I've done some more tests.
Firstly, I uninstalled and then re-installed both Liberty Basic 4.03 and LB Workshop 4.8.2.
I installed them into their default folders: C:\Program Files\Liberty BASIC v4.03\ and C:\Program Files\LB Workshop\
I then created .TKN files from both Liberty Basic and from the Workshop. I ran each application separately and loaded the same .bas file. You are right - the TKN files are identical provided you give them the same name. (I must have given them different filenames the first time I did this test.)
I then ran only Liberty Basic, loaded my file and tried to "Create Application Shift+F6" from the Liberty Basic menu and got the same error message: "Problem creating application ! OS Error: The system cannot find the file specified."
I then ran LB Workshop and clicked on the Liberty Basic menu and then "Run Liberty BASIC F9". In Liberty Basic, I then opened the .bas file and clicked on "Run" and then "Create Application Shift+F6" and it worked.
Maybe I have set up my paths wrongly in LB Workshop. These are the settings I have used:
Liberty Basic Path: C:\Program Files\Liberty BASIC v4.03\liberty.exe
Runtime Engine Path: C:\Program Files\LB Workshop\lbworkshop.exe
Liberty Basic Help Path: C:\Program Files\Liberty BASIC v4.03\LIBERTY4.HLP
FreeForm Path: C:\Program Files\Liberty BASIC v4.03\Freeform303.bas
Optional Help Path: C:\Program Files\Liberty BASIC v4.03\LBWTUTOR.HLP
If you can suggest something for me to try, I will try it. But as I do have one way of making an executable, it's not so important - just very strange.
|
|
|
Post by Alyce Watson on Mar 8, 2007 16:18:46 GMT -5
Try opening a file in the same directory as your TKN in the Liberty BASIC editor before attempting to create application. That's all I can think of right now, sorry!
|
|
|
Post by libertylover on Mar 9, 2007 11:28:27 GMT -5
Hi Alyce,
Thanks for the tip about the directories - it has lead me to another discovery!
What I did was to move my .bas file to the "LB Worksop/LBprogs" folder. I then ran Liberty Basic, opened the .bas file and successfully created the .TKN file and the .exe file. So this all worked fine without running LB Workshop.
So then I deleted those files and put another copy of the .bas file in a folder on my desktop. Again, I ran Liberty Basic, opened the file in the desktop folder and successfully made the .TKN file and the .exe file. So, so far, 2 out of 2.
I then went back to the original folder on my USB drive "F:". I did exactly the same as I did the previous two times and.... it worked!! I successfully ran Liberty Basic, opened the .bas file, created the .TKN file and then successfully created the .exe file. This was the first time I had managed to do that using only the Liberty Basic program (i.e. not using the LB Workshop).
So why did it start working? I soon realised why - I was running Liberty Basic by going to "Start/Programs/Liberty BASIC v4.03/Liberty BASIC v4.03".
Previously, I was opening "Explorer", browsing to my work folder and double-clicking on the .bas file in order to run Liberty Basic. And when I try to create the .exe file after running Liberty Basic that way, I get the OS error I mentioned in my first post.
So, something is not being set-up correctly when I click on a .bas file to run Liberty Basic. I'll do some more poking around, but if you can think of anything, I'd be interested.
Sorry this is such a long post, but I thought I'd put in all the detail as there must be somebody else who is going to come across this problem in the future, and having it all written down here in the forum should help them find a solution.
|
|
|
Post by Alyce Watson on Mar 9, 2007 11:45:14 GMT -5
|
|
|
Post by libertylover on Mar 9, 2007 17:29:30 GMT -5
Thanks Alyce. That particular thread didn't help much, but thanks for the link to that forum - I didn't realise it existed. So I'll browse around that forum for a while and probably post my question in the appropriate section there too. Do you think that's OK?
And thanks for all your help here.
|
|