[PyQt] Getting information about crash/lockup

2010-11-02 Thread Mikael Modin
Hi, I'm developing a networked multithreaded application using PyQt4 v 4.7.4. I'm wondering if there are any tools available to see what messages/signals are passed internally by Qt or if you can suggest any other good debugging tips/tools. My problem is this: The problem is related to three

Re: [PyQt] downcast a base class to its template subclass

2010-11-02 Thread Phil Thompson
On Mon, 1 Nov 2010 17:26:41 -0700, Qin Shen jeans...@tippett.com wrote: Hi, In my non-template base class' .sip file, I used %ConvertToSubClassCode directive to downcast the base class type to its sub-class. If the sub-class is not a template, it all works fine. Now I need to derive a

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Phil Thompson
On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data = buffer(sharedMemory.data()) ...should give _write_ access to the memory. ...bad

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Giovanni Bajo
On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data =

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 11:16:35 Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing QSharedMemory, and you replied, that: mutable_data =

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July last year, Alexandre Raczynski asked about accessing

Re: [PyQt] Getting information about crash/lockup

2010-11-02 Thread Erik Janssens
could you post the sample to the list ? it might be of interest. fortunately I don't run on windows...but I have a windows built for testing purposes On Tue, 2010-11-02 at 21:39 +1100, Mikael Modin wrote: Hi Erik, Thanks for the tips. I have a minimal sample with the exact same bug. Got

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Giovanni Bajo
On mar, 2010-11-02 at 13:57 +0200, Hans-Peter Jansen wrote: On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Phil Thompson
On Tue, 02 Nov 2010 13:19:06 +0100, Giovanni Bajo ra...@develer.com wrote: On mar, 2010-11-02 at 13:57 +0200, Hans-Peter Jansen wrote: On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200,

Re: [PyQt] downcast a base class to its template subclass

2010-11-02 Thread Qin Shen
Hi Phil, Phil Thompson wrote: On Mon, 1 Nov 2010 17:26:41 -0700, Qin Shen jeans...@tippett.com wrote: Hi, In my non-template base class' .sip file, I used %ConvertToSubClassCode directive to downcast the base class type to its sub-class. If the sub-class is not a template, it all works

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Hans-Peter Jansen
On Tuesday 02 November 2010, 13:26:44 Phil Thompson wrote: On Tue, 02 Nov 2010 13:19:06 +0100, Giovanni Bajo ra...@develer.com wrote: On mar, 2010-11-02 at 13:57 +0200, Hans-Peter Jansen wrote: On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +,

Re: [PyQt] Advice requested on MDI Image Viewer with synchronized windows

2010-11-02 Thread TP
On Wed, Oct 27, 2010 at 2:39 PM, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 19 October 2010, 07:41:55 TP wrote: I'm trying to write my first PyQt program. I eventually plan on creating an open-source PyQt app that explores the use of various image processing operations (using the

Re: [PyQt] Advice requested on MDI Image Viewer with synchronized windows

2010-11-02 Thread Hans-Peter Jansen
Hi wingusr, On Tuesday 02 November 2010, 20:56:35 TP wrote: On Wed, Oct 27, 2010 at 2:39 PM, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 19 October 2010, 07:41:55 TP wrote: I'm trying to write my first PyQt program. I eventually plan on creating an open-source PyQt app that

Re: [PyQt] Getting information about crash/lockup

2010-11-02 Thread Mikael Modin
As per Eriks suggestion I have attached the complete sample. Some more digging by myself and a colleague has shown a solution/workaround as well, but I'm still confused. The behaviour seem to be different from the specification. If you run the attached file you have 2 seconds to minimize the