LB Booster
« File or path not found at line 0 Error? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:30am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: File or path not found at line 0 Error?  (Read 448 times)
Coda
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 3
xx Re: File or path not found at line 0 Error?
« Reply #3 on: Jul 3rd, 2016, 05:21am »

Thanks for the advice, Richard. smiley I think I know what is happening with the slowing issue. I took your advice and ran the profiler. The main calculations loop of my program has quite a number of print statement so that I can easily debug as working. When you issue the nomainwin directive in standard LB, these are ignored by the runtime engine and the program speeds up dramatically as if they are not there and only slows down again when you allow a mainwin for debugging. According to the profiler, LBB is not ignoring these and still executing them in the absence of a main window and taking up valuable processor time. I can remove them or rem them to solve this but it might be worth making LBB ignore these if a nomainwin directive is issued if it's possible to do and if you plan any updates. I often program like this as I find debuggers very cumbersome and I often only need to know the value of 1 or 2 specific variables at one specific point to work out what is going wrong. So it's very easy to print it to a main window and then remove these lines before compilation or tokenisation. Perhaps it's a bad habit of mine but as I learnt to program prior to anything resembling a debugger became standard, it's force of habit that isn't going to change at this point...

That said, I'm not sure removing them will still make it much FASTER than LB though... but it will likely bring it to a comparable speed.

As for the relative paths problem, I am still trying to work that one out. I will report back what I find if anything. smiley
« Last Edit: Jul 3rd, 2016, 05:28am by Coda » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: File or path not found at line 0 Error?
« Reply #4 on: Jul 3rd, 2016, 10:41am »

on Jul 3rd, 2016, 05:21am, Coda wrote:
my program has quite a number of print statement so that I can easily debug as working... According to the profiler, LBB is not ignoring these

That's very interesting, and it isn't something I have considered previously. In LBB nomainwin only hides the main window, it does not actually close it, so as you say any print statements still execute and they may take a significant amount of time.

I don't think there's an easy way for me to fix this, at least for programs running in the IDE. As things stand, in LBB you can debug a program without having to 'recompile' it, and because the debugger overrides the presence of nomainwin I need any print statements to be active. In principle I could automatically delete the print statements in a program compiled to an EXE which would solve the problem, but you'd have to accept a slow-running program when run in the IDE.

Quote:
That said, I'm not sure removing them will still make it much FASTER than LB though... but it will likely bring it to a comparable speed.

If your program outputs a fair amount of graphics you may find that using the technique described in this wiki article speeds things up somewhat.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls