t-edson / P65Pas

CPU 6502 Pascal Compiler/IDE/Debugger
GNU General Public License v3.0
120 stars 27 forks source link

Crashes upon opening #35

Closed geraldholdsworth closed 2 years ago

geraldholdsworth commented 2 years ago

I found a bug where the application crashes upon opening.

On investigation, this was caused by the Timer1 component firing before the FormConfig form, which is accessed in the Timer1 handler, has not been created. This arose when I compiled for macOS, but could easily arise with other platforms.

I have got around this, so far, by setting the Enabled property of Timer1 to off (just untick the box) and then in the FormShow handler of FormPrinciple just add Timer1.Enabled:=True at the end. This is not a perfect solution, but will get around the issue for now. A better solution might be to add this line into the FormCreate or FormShow of the FormConfig form's unit (obviously, FormPrinciple.Timer1.Enabled:=True).

I have done this with version 0.8.9, as this is the latest version.

t-edson commented 2 years ago

I think the better solution is the first you propose, activating the Timer in the FormPrincipal. I will include it in the next update I will make.

geraldholdsworth commented 2 years ago

In hindsight, I agree.

t-edson commented 2 years ago

Branch 0.8 is updated and renamed to 0.9. Now Timer is enabled in event OnShow of frmPrincipal.

rpmccoy33 commented 2 years ago

Hello ...

I have tried running P65pas-win64.exe on 3 Win 10 machines and 1 Win 7 machine, and it gives message - " This App can't run on your PC, contact the software publisher " All are running 64 bit Windows.

Any ideas? or an older version to try ?


Ok... I got it running in Github Desktop

Thanks, R McCoy

t-edson commented 2 years ago

I work on Windows 10 - 64 bits. I guess the executable should work well in all 64 bits Windows platforms. I could generate a 32 bits executable too but I think it's not useful in this days.
Anyway, if you still have problems, you can install Lazarus and rebuild the compiler in your system.

geraldholdsworth commented 2 years ago

On my fork of this project I have compiled P65pas for Windows 32 and 64 bits, as well as Linux 32/64 bits, macOS 32/64 bits & ARM (M1), and Raspbian OS (Raspberry Pi). I just tested out the Windows 64 bit version on my Windows 10 and it worked fine.

rpmccoy33 commented 2 years ago

Thanks for both comments. I edited my earlier post to show that I got it working.

The file structure with all the Folders must be present for it to work correctly.

Thank you. R McCoy