I see three possibilities:
1. TEMP should be the address of a bitmap but in fact isn't
2. SpeedRun_ControlsRunning isn't a valid panel.
3. There is not yet a window at panel index is. In this case you should replace the 1 with a 0 in oder to create a new window.


Always learn from history, to be sure you make the same mistakes again...