[wxPython] [Q] wxOGL and memory leak

Hi, all...
I have experienced an odd memory leak problem with wxOGL.
I modified a wxOGL demo in demo directory and it worked quite well on my
dell desktop. But when I copied the codes and ran it on my IBM ThinkPad
laptop, I got memory leak error message.
Does the memory leak problem depend on the machine on which the wxPython
program is running? I tested a lot on my laptop, but no memory leak on my
laptop.
Is this known problem?

By the way, I asked how to use a popup menu in the previous email and found
it by myself. The reference distributed with wxPython is outdated. We should
use PopupMenu( menu, wxPoint( x, y ) ) instead of PopupMenu( menu, x, y )
which is what the current reference says.

Thanks in advance.
YJ

I have experienced an odd memory leak problem with wxOGL.
I modified a wxOGL demo in demo directory and it worked quite well on my
dell desktop. But when I copied the codes and ran it on my IBM ThinkPad
laptop, I got memory leak error message.
Does the memory leak problem depend on the machine on which the wxPython
program is running? I tested a lot on my laptop, but no memory leak on my
laptop.
Is this known problem?

Are they different versions of Windows?

···

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

No, both are the same, window2000 professionals.

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, November 23, 2001 1:09 PM
Subject: Re: [wxPython] [Q] wxOGL and memory leak

> I have experienced an odd memory leak problem with wxOGL.
> I modified a wxOGL demo in demo directory and it worked quite well on my
> dell desktop. But when I copied the codes and ran it on my IBM ThinkPad
> laptop, I got memory leak error message.
> Does the memory leak problem depend on the machine on which the wxPython
> program is running? I tested a lot on my laptop, but no memory leak on

my

> laptop.
> Is this known problem?

Are they different versions of Windows?

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

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

I checked the settings of two computers.
They are running Windows 2000 professional and I am using Python 2.1.1 and
wxPython 2.3.1.
I think I got the same memory leak problem in any wxPython application. I
tested several wxPython application such as PySketch and I experienced the
same memory leak problem.
Any ideas on this problem?

Thanks in advance.

YJ

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, November 23, 2001 1:09 PM
Subject: Re: [wxPython] [Q] wxOGL and memory leak

> I have experienced an odd memory leak problem with wxOGL.
> I modified a wxOGL demo in demo directory and it worked quite well on my
> dell desktop. But when I copied the codes and ran it on my IBM ThinkPad
> laptop, I got memory leak error message.
> Does the memory leak problem depend on the machine on which the wxPython
> program is running? I tested a lot on my laptop, but no memory leak on

my

> laptop.
> Is this known problem?

Are they different versions of Windows?

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

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

I checked the settings of two computers.
They are running Windows 2000 professional and I am using Python 2.1.1 and
wxPython 2.3.1.

Are they both the hybrid version?

I think I got the same memory leak problem in any wxPython application. I
tested several wxPython application such as PySketch and I experienced the
same memory leak problem.

What kind of objects are reported as leaking? Do you get the same leaks if
you use the version of pySketch in 2.3.2b7, (which can be downloaded here if
you prefer:
http://cvs.wxwindows.org/cgi-bin/viewcvs.cgi/wxPython/samples/pySketch/)

···

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

They are hybrid versions.

It is kind of hard to reprt what objects causing memory leaking because a
command window of windows2000 does not support a copy/paste action. I also
tried to redirect the error message when I ran a python script, but it
didn't work, either. Is there any convenient way to capture the error
message I got in the command window?

YJ

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Friday, November 23, 2001 8:48 PM
Subject: Re: [wxPython] [Q] wxOGL and memory leak

> I checked the settings of two computers.
> They are running Windows 2000 professional and I am using Python 2.1.1

and

> wxPython 2.3.1.

Are they both the hybrid version?

> I think I got the same memory leak problem in any wxPython application.

I

> tested several wxPython application such as PySketch and I experienced

the

> same memory leak problem.

What kind of objects are reported as leaking? Do you get the same leaks

if

you use the version of pySketch in 2.3.2b7, (which can be downloaded here

if

you prefer:
http://cvs.wxwindows.org/cgi-bin/viewcvs.cgi/wxPython/samples/pySketch/)

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

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

It is kind of hard to reprt what objects causing memory leaking because a
command window of windows2000 does not support a copy/paste action.

It does for me. Just select the text with the mouse and then press RETURN.

I also
tried to redirect the error message when I ran a python script, but it
didn't work, either.

I think it goes to the stderr file handle instead of stdout, so you need to
use a different symbol to redirect it, I think it is >&.

···

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

Hi,

I have the following little app, which works fine on ms win but on redhat
7.1 the line:
menuBar.Append(menu, "&File")
keeps dumping a core. I'm using Python 2.1.1, wxGTK-2.3.1 and
wxPython-2.3.1-1-Py21

I've also seen a number of examples which have a semicolon after that line,
why?

Thanks, Russ.

···

__________________________________
#!/usr/bin/python

from wxPython.wx import *

ID_ABOUT = 101
ID_EXIT = 102

class clsFrame(wxFrame):
def __init__(self, parent, ID, title):
  wxFrame.__init__(self, parent, ID, title, wxDefaultPosition, wxSize(200,
150))
  self.CreateStatusBar()
  self.SetStatusText("Idle...")

  self.SetAutoLayout(true)
  menu = wxMenu()
  menu.Append(ID_ABOUT, "&About", "More information about this program")
  menu.AppendSeparator()
  menu.Append(ID_EXIT, "E&xit", "Terminate the program")

  menuBar = wxMenuBar()
  menuBar.Append(menu, "&File")

  self.SetMenuBar(menuBar)

class clsApp(wxApp):
def OnInit(self):
  frame = clsFrame(NULL, -1, "Hello there")
  frame.Show(true)
  self.SetTopWindow(frame)
  return true

app = clsApp(0)
app.MainLoop()

___________________________________

I have the following little app, which works fine on ms win but on redhat
7.1 the line:
menuBar.Append(menu, "&File")
keeps dumping a core. I'm using Python 2.1.1, wxGTK-2.3.1 and
wxPython-2.3.1-1-Py21

I don't have any problems in my current 2.3.2 workspace (I don't have a
2.3.1 readily available.) I also don't see anything wrong with your code.
Does the demo run oaky?

I've also seen a number of examples which have a semicolon after that

line,

why?

They were probably originally translated from wxWindows C++ code.

···

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