[wxPython] Memory management of ogl.wxDiagram

Hello,

I found a problem dealing with the ogl.wxDiagram class.

This problem is similar to the one I encountered with the ogl.wxOGLConstraint class and reported earlier in February to this list.

Problem description:

If all Python references to an ogl.wxDiagram object go out of scope the corresponding C object seems to be deleted as well.
If I get a new Python reference to the diagram by canvas.GetDiagram() all calls on this reference result in a fatal program error from somewhere within the wxPython C code.
The same procedure works fine, if there is a Python reference continuously to the ogl.wxDiagram object.

Is this behavior intended?

I am working on a MSW NT platform with wxWindows 2.2.2 and Python 2.0.

Best regards

Joerg Hackenberg

I found a problem dealing with the ogl.wxDiagram class.

This problem is similar to the one I encountered with the

ogl.wxOGLConstraint class and reported earlier in February to this list.

Problem description:

If all Python references to an ogl.wxDiagram object go out of scope the

corresponding C object seems to be deleted as well.

If I get a new Python reference to the diagram by canvas.GetDiagram() all

calls on this reference result in a fatal program error from somewhere
within the wxPython C code.

The same procedure works fine, if there is a Python reference continuously

to the ogl.wxDiagram object.

Thanks, I'll look into it.

ยทยทยท

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