robhagemans / pcbasic

PC-BASIC - A free, cross-platform emulator for the GW-BASIC family of interpreters
http://www.pc-basic.org
Other
403 stars 48 forks source link

Issue "loading" the file #99

Closed AirGar closed 5 years ago

AirGar commented 5 years ago

Bug report

Problem

Program crashes when trying to open file

Steps

  1. put HPREF.Bas in c:\users\gary\
  2. set to use pcbasic as default program to open HPREF.bas (see file change to be a pcbasic type file
  3. double click on HPREF.bas
  4. I see quick flash of pcbasic black background then it disappears.

Program

  1. Get error "we do not support that type of file." when try to paste .BAS file.
  2. renamed to .TXT in Notepad to get into the GITHUB

HPERF.txt

Crash log

  1. No log?

Notes

PC-BASIC version: 1.2 Operating system version: W10 - latest

robhagemans commented 5 years ago

Hi, thanks! This is not a GW-BASIC file - it looks like QBASIC. GW-BASIC programs must have line numbers.

PC-BASIC can only load/run GW-BASIC files. What you see is not a crash, it is PC-BASIC exiting directly because you are asking it to load this file on startup, and it's not a supported file type. This is expected behaviour, it's in line with how GW-BASIC works.

To run this program you'd need a different BASIC interpreter or compiler, you could try FreeBASIC or QB64.

AirGar commented 5 years ago

Got it… thanks. Someone gave me this and just said “it’s a basic program”…

Gary

[Gary Investments]

From: Rob Hagemans notifications@github.com Sent: Sunday, May 5, 2019 7:49 PM To: robhagemans/pcbasic pcbasic@noreply.github.com Cc: Gary gary@ALOHAAKU.COM; Author author@noreply.github.com Subject: Re: [robhagemans/pcbasic] Issue "loading" the file (#99)

Hi, thanks! This is not a GW-BASIC file - it looks like QBASIC. GW-BASIC programs must have line numbers.

PC-BASIC can only load/run GW-BASIC files. What you see is not a crash, it is PC-BASIC exiting directly because you are asking it to load this file on startup, and it's not a supported file type. This is expected behaviour, it's in line with how GW-BASIC works.

To run this program you'd need a different BASIC interpreter or compiler, you could try FreeBASIC or QB64.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/robhagemans/pcbasic/issues/99#issuecomment-489506544, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL7ZXZ4OCSGPUUPTB3UNURTPT7BC7ANCNFSM4HK4MQQA.