Liberty BASIC Community Forum
« Long story - short question »

Welcome Guest. Please Login or Register.
Jul 26th, 2017, 05:53am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Long story - short question  (Read 235 times)
JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Long story - short question
« Thread started on: Jul 10th, 2017, 6:10pm »

Greetings! I joined Liberty Basic back in 2008/2009. I had one purpose in mind and that was to write a checkbook/budgeting program. With the help of many fine people on this blog, I was able to complete a (big for me) program of about 28 or 30 pages. This program has been in use since 2009. It has always worked properly and my wife and I both use the same program on two seperate computers. About 5 or 6 weeks ago my wife's computer aborts just past the login to our program on her computer.

The program still works properly on my computer. I haven't made any changes to the program since about 2010. Have their been any recent changes to Firefox, running on a Windows 7 computer that could cause this? I hope someone might have heard of something like this before and be able to suggest what I need to do. Appreciate all response.

I did print from the Error log that says error: OS Error. The system cannot find the path specified. At one time we did get a message saying something about the file and it showed the file as having a lnk extension. That was the first time I even saw an lnk extension and I have no idea how it got there. Most of my files use the txt extension. I am not acquainted with error logs and interpreting them.
« Last Edit: Jul 10th, 2017, 6:25pm by JustNorm » User IP Logged

cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 624
xx Re: Long story - short question
« Reply #1 on: Jul 10th, 2017, 7:41pm »

lnk files are the shortcut icons you see on your desktop. This extension is always hidden by Windows. If you are seeing the extension might be another problem there, recreating it could be the solution. Look and find the folder where your LB program is, and check if everything is in there.

By the way you could try to scan the HDD just in case. Using the ScanDisk utility. Then some antivirus of your preference too.

I doubt about the web browser to have anything to do here.
What version of Windows do you have ?
User IP Logged

cundo
JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Re: Long story - short question
« Reply #2 on: Jul 10th, 2017, 8:28pm »

Thanks for the reply, Cundo. The computer that is having the trouble is using Windows 7.
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5366
xx Re: Long story - short question
« Reply #3 on: Jul 11th, 2017, 01:32am »

We need more detail. Erase the error.log Liberty will create a new one, run your program till it errors and then cut and paste the error log contents here.

It sounds like your program is starting if the login screen is something you coded. It is running if it creates an error in the error.log.

I guess that it is not finding a file it needs. Your program uses files? Perhaps the file has been deleted, renamed or moved inadvertently.

Let's start with the error log, then time to check the file and run the debugger.

Edit to add, there is a known problem with Win7 and link files, does other software work normally on th pc involved?




« Last Edit: Jul 11th, 2017, 02:01am by Rod » User IP Logged

JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Re: Long story - short question
« Reply #4 on: Jul 11th, 2017, 11:10am »

Rod, Yes - everything else is running normally. I did the screen shot you suggested, but the text is so small it is almost unreadable. How can I make it larger?
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5366
xx Re: Long story - short question
« Reply #5 on: Jul 11th, 2017, 12:16pm »

No not a screen shot, just open the error.log either in the IDE or with Notepad then click and drag with your mouse to highlight the text, now press Ctrl+C. Move your mouse to the message box for this forum , click in it till you see the cursor then press Ctrl+V. The text will be copied and you can post the message.
User IP Logged

JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Re: Long story - short question
« Reply #6 on: Jul 12th, 2017, 08:46am »

Look to me as if the problem is in getting access to my file labeled BFCTL.txt. Here is the info copied from the error log.

Error log timestamp Tuesday 07/11/17 09:35:22 AM

Runtime error: OS Error: The system cannot find the path specified.

Error(Exception)>>grinefaultAction
Error(Exception)>>activateHandler: <anUndefinedObject>
Error(Exception)>>handle
Error(Exception)>>signal
Error class(Exception class)>>signal: <'OS Error: The system...'>
BasicRunProgram(Object)>>error: <'OS Error: The system...'>
BasicRunProgram(BasicProgram)>>terminateRun: <aFileError>
[] in BasicProgram>>errorHandlerBlock
ExceptionHandler>>evaluateResponseBlock: <aBlockClosure> for: <aFileError>
[] in ExceptionHandler>>handle:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>handle: <aFileError>
ExceptionHandler>>findHandler: <aFileError>
FileError(Exception)>>activateHandler: <anExceptionHandler>
FileError(Exception)>>handle
FileError(Exception)>>signal
FileError class>>signal: <'OS Error: The system...'> hostErrorCode: <3>
HostFileSystemError>>grinefaultAction
ExceptionHandler>>findHandler: <aHostFileSystemError>
HostFileSystemError(Exception)>>activateHandler: <anExceptionHandler>
HostFileSystemError(Exception)>>handle
HostFileSystemError(Exception)>>signal
HostFileSystemError class>>signalWith: <3>
FileHandle class>>osError: <3>
FileHandle class(Object)>>osError
[] in FileHandle class>>open:access:share:create:attributes:
ExceptionHandler>>evaluateProtectedBlock: <aBlockClosure>
[] in ExceptionHandler>>activateDuring:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>activateDuring: <aBlockClosure>
ExceptionHandler class>>handle: <anExceptionSet> with: <aBlockClosure> during: <aBlockClosure>
BlockClosure>>on: <anExceptionSet> do: <aBlockClosure>
FileHandle class>>open: <'C:\Norman\BUDGET\BFC...'> access: <2147483648> share: <3> create: <3> attributes: <128>
FileHandle class>>open: <'BFCTL.txt'> in: <aDirectory> access: <2147483648> share: <3> create: <3> attributes: <128>
FileHandle class>>openReadOnly: <'BFCTL.txt'> in: <aDirectory>
File>>openReadOnly
File>>readStream
File class>>laughathNameReadOnly: <'BFCTL.txt'> in: <aDirectory>
Directory>>fileReadOnly: <'BFCTL.txt'>
BasicFile>>from: <'C:\Norman\BUDGET\BFC...'> mode: <'INPUT'> handle: <'#BFCTLin'>
BasicFile class>>from: <'C:\Norman\BUDGET\BFC...'> mode: <'INPUT'> handle: <'#BFCTLin'> owner: <aBasicRunProgram> length: <anUndefinedObject>
[] in OpenCommand>>using:
[] in BasicRunProgram>>begin
ExceptionHandler>>evaluateProtectedBlock: <aBlockClosure>
[] in ExceptionHandler>>activateDuring:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>activateDuring: <aBlockClosure>


User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5366
xx Re: Long story - short question
« Reply #7 on: Jul 12th, 2017, 10:18am »

So can you find and open the file on the troublesome machine with notepad.exe? If you can click on file explorer, navigate to the file and right click on it. Is there any words on the general pane about the file being locked?

Also reboot the computer to be sure there is not an instance of your program running in the background holding the file open.

Let us know how you get on.

« Last Edit: Jul 12th, 2017, 10:19am by Rod » User IP Logged

Brandon Parker
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 1105
xx Re: Long story - short question
« Reply #8 on: Jul 12th, 2017, 12:31pm »

I see that the program is attempting to Open the BFCTL.txt file at the "C:\Norman\BUDGET\ ......." path....

Is it possible that this path no longer exists or the system was reverted to a previous state where this path/ file did not exist?

How is the "Norman" portion of the path derived? Is it a hard-coded path or is it a relative path based on other things like DefaultDir$/ StartupDir$?

In the event that the path is hard-coded to open at that exact path in the code and/ or you are deriving something based on who is logged in then I can see where this might happen; especially if your wife is now logging in under a different user or something.

Just some thoughts there.....


Quote:
Directory>>fileReadOnly: <'BFCTL.txt'>
BasicFile>>from: <'C:\Norman\BUDGET\BFC...'> mode: <'INPUT'> handle: <'#BFCTLin'>



{:0)

Brandon Parker
User IP Logged

Windows 7 Home Premium 64-bit Intel(R) Quad Core(TM) i5 CPU M 430 @ 2.27GHz 4GB DDR3 RAM
JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Re: Long story - short question
« Reply #9 on: Jul 12th, 2017, 8:01pm »

Brandon, thanks for the response. By the way - we share the same last name. Yes, the path is "hard coded", as well as a number of the other files used in the program. It happens that the BFCTL file is the first file opened by the program and that is when/where it aborts as the file cannot be found on her Windows 7 computer, the same one she has used for probably 4 or 5 years.

I am running the same program on my old VISTA computer and everything is working fine there. I have a new Windows 10 computer, but I am still getting my feet wet there and not liking it much. Since MSFT has stopped supporting VISTA, I am using the old computer strictly off-line. Just the computer and a printer.

I have not implemented the program in question on the windows 10 computer and I know it is going to take some work as there are a number of hard-coded files in the program and it seems to me that coding formats to access a file are all going to have to be changed if I ever want to put the program on the W10 computer. I wrote the program back in 2008/2009 and that is a long time ago. I don't know if DefaultDir$/ StartupDir$? were even available back then but I can see that I need to look into possibly using them. Where can I find out more about them?


User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5366
xx Re: Long story - short question
« Reply #10 on: Jul 13th, 2017, 01:34am »

You need to download and instal the latest version of Liberty BASIC v4.5.1. Older versions are not Win10 compliant.
User IP Logged

Brandon Parker
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 1105
xx Re: Long story - short question
« Reply #11 on: Jul 13th, 2017, 10:02pm »

Funny about the last name..... grin

You can find them both in help files.

I'm still running LB 4.5.0 on Windows 10 with no issues.....

Can you provide us with the complete file path that BFCTL.txt is expected to be at and double-check on your wife's computer that the exact file path exists?


{:0)

Brandon Parker
User IP Logged

Windows 7 Home Premium 64-bit Intel(R) Quad Core(TM) i5 CPU M 430 @ 2.27GHz 4GB DDR3 RAM
JustNorm
New Member
Image


member is offline

Avatar




PM


Posts: 8
xx Re: Long story - short question
« Reply #12 on: Jul 14th, 2017, 10:37am »

Busy weekend here - might not have time to work on my problem now. Start again Monday.
User IP Logged

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

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls