[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] problem with abstract classes
From:       "Diez B. Roggisch" <deets () web ! de>
Date:       2007-08-15 22:53:44
Message-ID: 46C383F8.1090500 () web ! de
[Download RAW message or body]

Phil Thompson schrieb:
> On Wednesday 15 August 2007 8:57 pm, Diez B. Roggisch wrote:
>> Hi,
>>
>>> Do as Jim said and make sure the declaration of IEventReceiver::OnEvent()
>>> is the same in the .h and .sip files (see attached).
>>>
>>> Also remove the /Abstract/ annotation (for your example at least).
>>> Including it means that "there are *other* abstract functions which I'm
>>> not going to tell you about".
>>>
>>> With the new .sip file I get the following output from running your
>>> test...
>>>
>>> overloaded event: 200
>>> overloaded event: 100
>> thanks to Jim, Giovanno & Phil for solving this. Now the overloading works.
>>
>> However I'm still stucked on the original issue.. and actually pretty
>> much out of my wits.
>>
>> Is there anybody with a mac who could try and reproduce the problem? Of
>> course he/she gets the whole project stuff.
> 
> I can try - but the smaller the test the better.

AAAAAH. Ok. I found it. It turned out to be a prematurely freed object 
instance which must have garbled the pointer.

I could bite my head off right now. Be assured that I'll be back over 
the next few days with some questions regarding that - as the Irrlicht 
engine employs it's own reference counting scheme which I'd love to 
integrate with Pythons - if somehow possible, that is. Which needs some 
research.

I know why I prefer languages with GC over the 
allocation/deallocation-madness of C++...

Thanks a ton for the great help, without the overloading-issues solved I 
would have never come so far!

Regards,

Diez
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic