Phoenix - adjust MediaLocker

Hi,

I am updating MediaLocker project to Phoenix as an excercise and run into this exception when closing the application.

wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(468) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
File "h:\devProjectsT\MikeD\MediaLockerMain\runapp.py", line 26, in <module>
   app.MainLoop()
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py", line 1839, in MainLoop
   rv = wx.PyApp.MainLoop(self)

Any pointers on why this is happening or how to fix MediaLocker would be very welcome:-) .

Werner

Werner wrote:

Hi,

I am updating MediaLocker project to Phoenix as an excercise and run
into this exception when closing the application.

wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this"
failed at ..\..\src\common\wincmn.cpp(468) in
wxWindowBase::~wxWindowBase(): any pushed event handlers must have been
removed
File "h:\devProjectsT\MikeD\MediaLockerMain\runapp.py", line 26, in
<module>
app.MainLoop()
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py",
line 1839, in MainLoop
rv = wx.PyApp.MainLoop(self)

Any pointers on why this is happening or how to fix MediaLocker would be
very welcome:-) .

Is there any PushEventHandler in the code or in library modules it is using?

···

--
Robin Dunn
Software Craftsman

Hi Robin,

Werner wrote:

Hi,

I am updating MediaLocker project to Phoenix as an excercise and run
into this exception when closing the application.

wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this"
failed at ..\..\src\common\wincmn.cpp(468) in
wxWindowBase::~wxWindowBase(): any pushed event handlers must have been
removed
File "h:\devProjectsT\MikeD\MediaLockerMain\runapp.py", line 26, in
<module>
app.MainLoop()
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py",
line 1839, in MainLoop
rv = wx.PyApp.MainLoop(self)

Any pointers on why this is happening or how to fix MediaLocker would be
very welcome:-) .

Is there any PushEventHandler in the code or in library modules it is using?

Did I quick "Search in Files - Project Files" for it in WingIDE and it doesn't find any.

Will work some more on this today and see if I can narrow it down a bit more.

I think this is the last problem in MediaLocker to be resolved to run on Phoenix, anyhow will push the changed code to the Mike's Bitbucket repo later today.

Werner

···

On 07/03/2013 06:17, Robin Dunn wrote: