Problems when Exiting

BlitzPlus Forums/BlitzPlus Programming/Problems when Exiting

I'm working on a shoot 'em up at the mo. I've done about 1 and a half levels and pretty much everything is going fine apart form one, big, bad bug. Basically what happens is, when I run the program, I get no errors, and if I try to close the game at the title screen, it just closes quickly. but, if I get into the main game, and then I exit, the game can take up to 3 minutes to close, and sometime sit doesn't even close at all =/
Can you tell me why this is happening? The zipped file containing all code and media is here:

Tempral Storm V0.3 [zipped]

Thanks in advance.

BTW, this only shows on level and it just skips straight to the boss, if you're wondering.

404 and then took me to some pron site :/

It'll work now.

Graphics3D? Sorry, only B2D/B+ here. Maybe you should try the B3D section for this.

Sorry (again).

The usual cause is Types which contain arrays.

As the number of allocated objects with arrays grows the time required to delete one of them increases.
So if you have one which is no longer needed you should delete it immediately.