MediaCtrl crashes the application

Hi,

I have an application where I use the MediaCtrl object in a dialog window. When I close that dialog (i.e. the MediaCtrl object is destroyed) and then move or resize the main window, the application crashes. This is under WinXP using Python 2.3 and wxPython 2.6.1.0 (unicode).

The crash can also be observed using the wxPython demo application. Here are the steps:

1) Open "More Windows/Controls" -> "MediaCtrl"

2) Switch to another demo (say, the IntCtrl demo just above the MediaCtrl demo)

3) Try to drag around the main window

-> The window moves a little bit and then I get a crash

I suppose this is a bug (or is there something that I and the demo application is doing wrong?).

- Matthias -

Matthias Baas wrote:

Hi,

I have an application where I use the MediaCtrl object in a dialog window. When I close that dialog (i.e. the MediaCtrl object is destroyed) and then move or resize the main window, the application crashes. This is under WinXP using Python 2.3 and wxPython 2.6.1.0 (unicode).

The crash can also be observed using the wxPython demo application. Here are the steps:

1) Open "More Windows/Controls" -> "MediaCtrl"

2) Switch to another demo (say, the IntCtrl demo just above the MediaCtrl demo)

3) Try to drag around the main window

-> The window moves a little bit and then I get a crash

I suppose this is a bug (or is there something that I and the demo application is doing wrong?).

Another data point. wxPython 2.6.1.0 also fails on Python 2.4.1 on Windows XP.

regards
  Steve

···

--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Steve Holden wrote:

Matthias Baas wrote:

Hi,

I have an application where I use the MediaCtrl object in a dialog window. When I close that dialog (i.e. the MediaCtrl object is destroyed) and then move or resize the main window, the application crashes. This is under WinXP using Python 2.3 and wxPython 2.6.1.0 (unicode).

The crash can also be observed using the wxPython demo application. Here are the steps:

1) Open "More Windows/Controls" -> "MediaCtrl"

2) Switch to another demo (say, the IntCtrl demo just above the MediaCtrl demo)

3) Try to drag around the main window

-> The window moves a little bit and then I get a crash

I suppose this is a bug (or is there something that I and the demo application is doing wrong?).

Another data point. wxPython 2.6.1.0 also fails on Python 2.4.1 on Windows XP.

Please test this for me with a 2.6.2 preview build from http://starship.python.net/crew/robind/wxPython/daily/

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

I have an application where I use the MediaCtrl object in a dialog window. When I close that dialog (i.e. the MediaCtrl object is destroyed) and then move or resize the main window, the application crashes. This is under WinXP using Python 2.3 and wxPython 2.6.1.0 (unicode).
[...]

Please test this for me with a 2.6.2 preview build from http://starship.python.net/crew/robind/wxPython/daily/

Using wxPython2.6-win32-unicode-2.6.2.1pre.20051227-py23.exe the application behaves normally again. What a quick fix! Thanks!

- Matthias -