The following code crashes the AppGameKit player. Most likely because the getSpriteNextContact() is trying to reference a sprite that was just deleted. I resolved it by doing any delete after the loop. But something other than crashing the player would be nice.
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "bugtest" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
sid1 = CreateSprite(0)
sid2 = CreateSprite(0)
SetSpritePhysicsOn(sid1, 2)
SetSpritePhysicsOn(sid2, 2)
do
Print( ScreenFPS() )
Sync()
c = GetSpriteFirstContact(sid1)
while c <> 0
spriteID2 = getSpriteContactSpriteID2()
DeleteSprite(sid1)
c = getSpriteNextContact()
endwhile
loop