OK so I have Opened a sampled AGK4Pas example...the simple one that shows "Hello AppGameKit for pascal" with an AppGameKit sprite in the centre of the window.
I have run this no problem at al..no SIGSEGV!...I then introduce one of my own classes and do little more than create an instance of it. Bam a SIGSEGV.
I then remove my class from the source completely, recompile : No SIGSEV. So it must be the unit that holds my class. What I do not get is that when i do nothing but add the unit containing the class to my uses, I get a SIGSEGV?
That is without ANY other reference to it in the code?
Assembler starts:
ntdll!TPCallBack May Run Long (1670)
***STOP THE PRESS***
The user created units/classes added to a project in AppGameKit for Pascal must be listed in the 'uses' clause AFTER - AGK. As soon as I Put my unit name AFTER AppGameKit, the SIGSEGV vanished!!!! ie
in 'uMain' the clause
uses
uMyUnit,
AGK;
Seems to cause a SIGSEGV. However simply changing it to
uses
AppGameKit,
uMyUnit;
Seems NOT to give a SIGSEGV.....!!!
hoooooooooooooooooooooooray!
Constantly seeking!