I noticed that when I invoked the setCentralWidge t() method using PyQt
3.13 on Python 2.3.5 opening and closing a widget associated with a
main window would result in a Win32 access violation crash after a
couple of times. Here's a generic snippet:
class Application_Win dow(QMainWindow ):
def __init__(self):
QMainWindow.__i nit__(self,None ,'application main
window',Qt.WDes tructiveClose)
def other_widget(se lf):
self.this_widge t=QWidget()
self.setCentral Widget(self.thi s_widget)
The only way I could avoid the crashes was to replace the
setCentralWidge t() method with:
self.this_widge t.show()
Is there some fundamental error I was making in this, or is this a
known bug? 4 1933
On Saturday 07 January 2006 1:06 pm, gregarican wrote: I noticed that when I invoked the setCentralWidge t() method using PyQt 3.13 on Python 2.3.5 opening and closing a widget associated with a main window would result in a Win32 access violation crash after a couple of times. Here's a generic snippet:
class Application_Win dow(QMainWindow ): def __init__(self): QMainWindow.__i nit__(self,None ,'application main window',Qt.WDes tructiveClose)
def other_widget(se lf): self.this_widge t=QWidget() self.setCentral Widget(self.thi s_widget)
The only way I could avoid the crashes was to replace the setCentralWidge t() method with:
self.this_widge t.show()
Is there some fundamental error I was making in this, or is this a known bug?
What version of Qt?
Phil
Hope this post doesn't duplicate, as a Google Groups error happened
last attempt...
Phil Thompson wrote: What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar app I didn't experience the access
violation crashes when invoking the setCentralWidge t() method. It's
sporadic, as the crashes sometimes take 2-3 widget opens/closes to
happen. Other times it takes more. Trying to debug the crashes the
script never makes it past this method. Here's an excerpt from the Dr.
Watson error log:
function: QGList::findRef
39d2dd42 807c240800 cmp byte ptr [esp+0x8],0x0
ss:00c09513=00
39d2dd47 7407 jz QString::fromUt f8+0x8a
(39d36850)
FAULT ->39d2dd49 8b4108 mov eax,[ecx+0x8]
ds:00cd9f51=480 01500
39d2dd4c 33d2 xor edx,edx
39d2dd4e eb06 jmp QString::fromUt f8+0x90
(39d36856)
39d2dd50 8b4110 mov eax,[ecx+0x10]
ds:00cd9f51=480 01500
39d2dd53 8b5114 mov edx,[ecx+0x14]
ds:00cd9f51=480 01500
39d2dd56 56 push esi
39d2dd57 85c0 test eax,eax
39d2dd59 740e jz QString::fromLa tin1+0xb
(39d36869)
39d2dd5b 8b30 mov esi,[eax]
ds:007ad4d8=008 58340
39d2dd5d 3b742408 cmp esi,[esp+0x8]
ss:00c09513=000 00000
39d2dd61 7406 jz QString::fromLa tin1+0xb
(39d36869)
39d2dd63 8b4008 mov eax,[eax+0x8]
ds:012873be=000 00000
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0012F664 1E057D56 089FE908 00857948 00000001 088FAAD0 !QGList::findRe f
0012F6C8 00000001 00000000 00000000 007A5234 00779288 !PyCFunction_Ca ll
Phil Thompson wrote: What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar app I didn't experience the access
violation crashes when invoking the setCentralWidge t() method. It's
sporadic, as the crashes sometimes take 2-3 widget opens/closes to
happen. Other times it takes more. Trying to debug the crashes the
script never makes it past this method. Here's an excerpt from the Dr.
Watson error log:
function: QGList::findRef
39d2dd42 807c240800 cmp byte ptr [esp+0x8],0x0
ss:00c09513=00
39d2dd47 7407 jz QString::fromUt f8+0x8a
(39d36850)
FAULT ->39d2dd49 8b4108 mov eax,[ecx+0x8]
ds:00cd9f51=480 01500
39d2dd4c 33d2 xor edx,edx
39d2dd4e eb06 jmp QString::fromUt f8+0x90
(39d36856)
39d2dd50 8b4110 mov eax,[ecx+0x10]
ds:00cd9f51=480 01500
39d2dd53 8b5114 mov edx,[ecx+0x14]
ds:00cd9f51=480 01500
39d2dd56 56 push esi
39d2dd57 85c0 test eax,eax
39d2dd59 740e jz QString::fromLa tin1+0xb
(39d36869)
39d2dd5b 8b30 mov esi,[eax]
ds:007ad4d8=008 58340
39d2dd5d 3b742408 cmp esi,[esp+0x8]
ss:00c09513=000 00000
39d2dd61 7406 jz QString::fromLa tin1+0xb
(39d36869)
39d2dd63 8b4008 mov eax,[eax+0x8]
ds:012873be=000 00000
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0012F664 1E057D56 089FE908 00857948 00000001 088FAAD0 !QGList::findRe f
0012F6C8 00000001 00000000 00000000 007A5234 00779288 !PyCFunction_Ca ll
Phil Thompson wrote: What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar app I didn't experience the access
violation crashes when invoking the setCentralWidge t() method. It's
sporadic, as the crashes sometimes take 2-3 widget opens/closes to
happen. Other times it takes more. Trying to debug the crashes the
script never makes it past this method. Here's an excerpt from the Dr.
Watson error log:
function: QGList::findRef
39d2dd42 807c240800 cmp byte ptr [esp+0x8],0x0
ss:00c09513=00
39d2dd47 7407 jz QString::fromUt f8+0x8a
(39d36850)
FAULT ->39d2dd49 8b4108 mov eax,[ecx+0x8]
ds:00cd9f51=480 01500
39d2dd4c 33d2 xor edx,edx
39d2dd4e eb06 jmp QString::fromUt f8+0x90
(39d36856)
39d2dd50 8b4110 mov eax,[ecx+0x10]
ds:00cd9f51=480 01500
39d2dd53 8b5114 mov edx,[ecx+0x14]
ds:00cd9f51=480 01500
39d2dd56 56 push esi
39d2dd57 85c0 test eax,eax
39d2dd59 740e jz QString::fromLa tin1+0xb
(39d36869)
39d2dd5b 8b30 mov esi,[eax]
ds:007ad4d8=008 58340
39d2dd5d 3b742408 cmp esi,[esp+0x8]
ss:00c09513=000 00000
39d2dd61 7406 jz QString::fromLa tin1+0xb
(39d36869)
39d2dd63 8b4008 mov eax,[eax+0x8]
ds:012873be=000 00000
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0012F664 1E057D56 089FE908 00857948 00000001 088FAAD0 !QGList::findRe f
0012F6C8 00000001 00000000 00000000 007A5234 00779288 !PyCFunction_Ca ll This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vamsi Mudrageda |
last post by:
I am kind of new to Python, and after trying and using wxPython, I found
it kind of lacking in easy-to-read documentation, speed at loading, and
GUI response-time.
So I am looking for an another GUI toolkit that is cross-platform for
Python, and am leaning toward PyQt (PyGTK is kind of dull looking in
comparison). Unfortunately, although TrollTech says Qt is
cross-platform, its license strategy has me a bit confused. So here is
to...
|
by: simo |
last post by:
OK, so I'm at the stage where I want to make a choice between wxPython
and PyQt.
Currently I'm using wxPython mainly due to the fact that it has GPL
Linux and Windows versions.
I prefer Qt to wxWindows, but am confused with all the Windows
licensing issues.
For the moment this is just for my own tinkering and utility apps, but
|
by: svenn.are |
last post by:
Hi,
I wanted to run a program that is written in PyQt on my mac, and went
over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources.
I followed the installation guide except for the compiling python as
Macosx already has python.
I had no problem with compiling SIP and also no problem with compiling
PyQt nor did I have any error message during make install.
|
by: Erwan Adam |
last post by:
Hi all,
I try to introduce tooltips in my application written
in PyQt (more precisly, in the menubar of my application)
but I can't find a way to get the QRect instance
associated to a QMenuBar item (neither a QPopupMenu item)
I need the QRect 'cause I followed the tooltip.py file
given with pyqt to do the job with a re-implementation
of "maybeTip( self, pos )".
|
by: Fabio |
last post by:
Hi all,
I'm about to write an application, and I'd like to use PyQt, but before
choosing this toolkit I would like to clarify some particular licensing
issues; if some user has already touched these, I would like to hear from
his experiences.
This app should be cross-platform, so, given qt licensing policies, I would
buy a commercial PyQt license and a commercial Qt license.
Could I license the application under the GPL for Gnu/Linux...
| |
by: Michael McGarry |
last post by:
Hi,
I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
can't get past configuring sip.
I installed fink's qt3-3.2.3-2 and restarted my shells to get
qt3's environment variables QTDIR and QMAKESPEC.
I downloaded sip-4.1 from
http://www.river-bank.demon.co.uk,
|
by: Eric Jardim |
last post by:
Hi,
Is there any site that gather all the documentation about PyQt?
The docs of the Riverbank site is poor, and I have found separate
tutorials on the net.
I know that the Kompany have made a "Qtdoc"-like to PyQt. But it is not
free doc.
|
by: Willem Voncken |
last post by:
Hi guys,
might be a silly question, but i'm wondering whether it is even possible to
generate access violations when using C#?
I'm new at c# programming, but i have some experience with c++. Now that i'm
using c# i can't see how i should mess up memory like that without the use
of pointers or adresses.
Regards, Willem
|
by: Viperoptic |
last post by:
Hi All
I am doing an update query from MS Access on a few records. The update work once perfectly but a soon as I run it again it returns the error below...
"I have 5 records that won't do what its told due to key violations
Database didn't update 0 field(s) die to a type conversion failure, 5 record(s) due to key violations, 0 record(s) due to lock violations and 0 record(s) die to validation rule violations. "
Is there anyway...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |