Skip to content

MacOS M1 crashes in TApplication.CreateForm #568

@dl8dtl

Description

@dl8dtl

I once started a branch to port CQRlog to MacOS, in particular to the Apple Silicon version.

https://github.com/dl8dtl/cqrlog/tree/macos_port

That used to work, well, to some degree at least. Recently, I cannot get it to run at all. It crashes now with an invalid access exception in TApplication.CreateForm, at the second call to this procedure. The call stack is

#0 DUTILS$_$TDMUTILS_$__$$_SORTARRAY$LONGINT$LONGINT at :-1
#1 DDATA$_$TDMDATA_$__$$_LOADEQSLCALLS at :-1
#2 DDATA$_$TDMDATA_$__$$_DATAMODULECREATE$TOBJECT at :-1
#3 CLASSES$_$TDATAMODULE_$__$$_DOCREATE at :-1
#4 CLASSES$_$TDATAMODULE_$__$$_AFTERCONSTRUCTION at :-1
#5 CLASSES$_$TDATAMODULE_$__$$_CREATE$TCOMPONENT$$TDATAMODULE at :-1
#6 CREATEFORM(0x000000010480ca08, 0x0000000100aab3f0, <unavailable>) at application.inc:2176
#7 PASCALMAIN at :-1
#8 FPC_SysEntry at :-1
#9 FPC_SYSTEMMAIN at :-1
#10  at :0
#11  at :0

at Instance.Create(Self) (line 2176).

I have basic Pascal knowledge, but I am completely at a loss with the complexity of this.

Anyone having any clues what this might mean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions