Shifted the MainLoop() call to be outside the wx.App initialisation.
This was a strange place to have it, in the OnInit() method! This should prevent future issues.
Authored by: bugman 2010-02-05
Parent: [r10664]
Child: [r10666]