Menu

Startup errors when invoking PCBASIC from a desktop shortcut

2016-03-21
2016-03-21
  • Rob Hagemans

    Rob Hagemans - 2016-03-21

    Hi John, thanks for your report! Good to know the emulator is helping keep the old programs going.

    I will try the program to see if I can reproduce the problem. Please stay tuned here as I may need more information from you.

    By the way (and this is unrelated to the issue you're running into) since the programs were intended for Tandy you can more accurately emulate a Tandy 1000 with the command-line option --preset=tandy. Then again, if you are used to running this on GW-BASIC on Windows XP the default settings you're using are more similar to that setup.

    Either way, if it ran without problems under GW-BASIC the intention is that it should run without problems under PC-BASIC, so there probably is a bug of some sort in PC-BASIC that I'll try to identify.

     
    • Anonymous

      Anonymous - 2016-03-21

      As noted below, the machine I started with costs me $799 in 1977 (1978 something like that) and I spent everything I had saved for college buying the thing. I used it to program these Land Surveying and Civil Engineering programs that were used (and still are) by my dad's land surveying business. He is still puttering along and enjoys the fact that he can say that $1500 he paid me for the pograms and the machine are the best investment he ever made in my education. Of course, now at age 60, I am slowing down myself and am struggling to finish my PhD in Urban Planning so coding is not my long suite.

      Thanks for your help and for providing a path for some of us kids to keep our folks busy.

      John

      PS: I still have the original machines (TRS-80 Model I, the TRS-80 Model 4) along with the instruction manual that I wrote for my younger brother to use when running the programs. My brother is now the owner of the business and got his Land SUrveying license and is a Professional Engineer. He still uses the programs since he works with my dad on select projects. If you ever want the machine that it all started on, give me a ring and I can make the hardware available to you very cheap.

       
  • Rob Hagemans

    Rob Hagemans - 2016-03-21

    "One other problem I have encountered is that sometimes it will not load a program but just load some few lines of bogus code and then hang up."

    This is probably a separate problem and I'd like to know more about it. Could you elaborate on it? E.g.:

    • Does it always happen with the same program (if so, it would help if you could share the original file as an attachment - don't just paste the code as the problem may be triggered by something in the file)
    • Does it happen when you load the program with the LOAD statement or from the command line as you do above? There is a bug in loading files from the command line on Windows that has recently been brought to my attention and is solved for the next release. If the program loads correctly with LOAD it is probably the same bug.

    Thanks!
    Rob

     
  • Rob Hagemans

    Rob Hagemans - 2016-03-21

    One more thing - Could you also attach the original file for the BASIC file SURVEY.BAS please? I know you've posted the program text but there are many issues which can only be reproduced if I have the original file, since GW-BASIC files are usually stored an a binary format. You can use the 'add attachments' button below the forum text entry form to upload it.

    From reading your post again the problem does not occur if you load the file through the LOAD statement, but it does occur if you load it through your batch file, is that correct?
    If so, here's a workaround that you can use which will save your Father from having to type the command every time he uses the program until this issue is fixed.
    In your SURVEY.BAT batch file, change the command to the following:

    C:\PCBASIC\PCBASIC.EXE --mount=A:C:\PLCEA-DATA,B:C:\PLCEA-ASCII,W:C:\PLCEA-CSV -f=8 -e='RUN "SURVEY.BAS"'
    

    (note the single and double quotes, they are important). The command you use should work fine, but I think you may be affected by the same bug I mentioned earlier. That bug will be fixed for the .6 release but until then let me know if this workaround works.

    Hope this helps,
    Rob

     

    Last edit: Rob Hagemans 2016-03-21
    • Anonymous

      Anonymous - 2016-03-21

      I will summarize all the questions and reply to this one unless you want me to reply separately.

      1) If I use the pcbasic program and run the load command, the correct program loads.
      If I run it from the script, it loads correctly for the first ten to fifteen times, then it starts to load the wrong program.

      2) One note, I am running a version of Python for a program (ESRI ArcMap) that is a 2.7
      version. Here is the version data from the IDE:

      Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
      Type "copyright", "credits" or "license()" for more information.

      3) Using the improved script that you sent 30 minutes ago, it runs the correct program.
      4) I will attach the BASIC programs.
      5) The original TANDY computer was called the Model I. It had 4K of memory and ran Microsoft Level I ROM Basic. See link for information (http://www.old-computers.com/museum/computer.asp?c=409). I have ported these programs from that machine to DOS on an original IBM PC, then PC-XT, PC-AT, Dell 386,, HP 486, Pentium, then to Windows using GW-BASIC for Windows 3.0 through XP-Pro. Now with your help to Windows 10.
      6) I will meet with my dad this week and ask him to run it through its paces.

      Again, thanks for the prompt reply. Looks like that has it working for now!

      John

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.