because pnl doesn't get reset to NULL if you call ptr_remove
you need to destroy the function by your own

the double speed is because of gamestudio allocating behaviours
you don't get an invalid pointer but a pointer to your new PANEL

so the funtion runs twice


Visit my site: www.masterq32.de