471,330 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Memory leak in PyQt application

Hello alltogether,

My System:

Python 2.5.1
Boost.Python
Qt 4.2.2
SIP 4.6
PyQt 4.2
WinXp

I've a memory leak in a PyQt application and no idea how to find it. What
happens in the application ?

From QWindow a QDialog is called on a button "pressed()" signal, that
instantiate a QThread and waits for it. If the thread has finished, the QDialog
closes.

I've stipped down everything that nothing more happens (to me obviously).
Boost.Python is used to wrap a C++ Lib (used in the thread). Every time memory
usage increases for ~70 KB.

Sometimes the application crash on closing QWindow. (QtCore.dll)

- One thing I ask me is weather garbage collection is done in the PyQt main loop?

What hints do you have to find the leak?

Help is very very welcome

Regards
Alexander
Jun 28 '07 #1
1 3193
Python 2.5.1
Boost.Python
Qt 4.2.2
SIP 4.6
PyQt 4.2
WinXp

I've a memory leak in a PyQt application and no idea how to find it. What
happens in the application ?

From QWindow a QDialog is called on a button "pressed()" signal, that
instantiate a QThread and waits for it. If the thread has finished, the
QDialog
closes.

I've stipped down everything that nothing more happens (to me obviously).
Boost.Python is used to wrap a C++ Lib (used in the thread). Every time
memory
usage increases for ~70 KB.

Sometimes the application crash on closing QWindow. (QtCore.dll)

- One thing I ask me is weather garbage collection is done in the PyQt main
loop?

What hints do you have to find the leak?

Have a look at valgrind: http://valgrind.org/

HTH,
Daniel
Jul 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Morten Aune Lyrstad | last post: by
3 posts views Thread by Giovanni Boschi | last post: by
4 posts views Thread by Don Nell | last post: by
9 posts views Thread by Anton | last post: by
23 posts views Thread by James | last post: by
7 posts views Thread by Salvador | last post: by
8 posts views Thread by Lauren the Ravishing | last post: by
3 posts views Thread by Jim Land | last post: by
22 posts views Thread by Peter | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.