Another thought. Watch for your globals. You might have two planes in exsistance. On created in the main program and another in a function. If you create a plane in a function using a local variable, then exit the function, i don't think there's anyway to access it again.