Up to 45 wxApps then crash.

Hi,
Some tests on win98se, Py241, wx261-ansi.
The code has been modify and uses the wx namespace

Using / not using the dialog window has no impact.

From these tests, it seems the app is not well deleted. When using

the main() fct, the app is probably correctly deleted by the garbage
collector.

Jean-Michel Fauth, Switzerland

#ok
#~ if __name__ == '__main__':
    #~ print 'main...'
    #~ app = MyApp(0)
    #~ app.MainLoop()

#stop after i == 1 with wxPython crash (WXMSW26H_VC.DLL)
#~ if __name__ == '__main__':
    #~ print 'main...'
    #~ for i in range(100):
        #~ print i
        #~ app = MyApp(0)
        #~ app.MainLoop()

#~ ok
#~ if __name__ == '__main__':
    #~ print 'main...'
    #~ for i in range(100):
        #~ print i
        #~ app = MyApp(0)
        #~ app.MainLoop()
        #~ del app

def main():
    app = MyApp(0)
    app.MainLoop()

#ok
#~ if __name__ == '__main__':
    #~ main()

#ok
#~ if __name__ == '__main__':
    #~ print 'main...'
    #~ for i in range(100):
        #~ print i
        #~ main()

# stop after i == 1
#~ for i in range(100):
    #~ print i
    #~ app = MyApp(0)
    #~ app.MainLoop()

#ok
#~ for i in range(100):
    #~ print i
    #~ main()