[Qt-interest] qtmutex locked - application waits??

caius ligarius caius9090 at gmail.com
Tue May 25 22:59:29 CEST 2010


This email contained a disallowed file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments.

Instruct the sender to enclose the file(s) in a ".zip" compressed file, and rename the ".zip" compressed file with a different extension, such as, ".rtnzip".  Password protecting the renamed ".zip" compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension ".zip".

Additional instructions and options on how to receive these attachments can be found at:.

http://security.it.ray.com/antivirus/extensions.html
http://security.it.ray.com/news/2007/zipfiles.html

Should you have any questions or difficulty with these instructions, please contact the Help Desk at 877.844.4712

Here you go, this is <200 lines of code. I have stripped out all non-qt
dependencies and left only the basic UI framework along with .ui file.

I have checked this and it compiles (at least on VS2008 which I am using). I
have also attached solution file for you reference.

To reproduce the problem-
Keep selecting random items from the combo-box in the UI (top right hand
side). Eventually the UI will freeze or waits for a few seconds before the
item can be selected. Not sure why this happens?

Thanks,
Caius

On Tue, May 25, 2010 at 11:51 AM, Thiago Macieira <thiago at kde.org> wrote:

> Em Terça-feira 25. Maio 2010, às 19.26.53, caius ligarius escreveu:
> > I thought I was using the GUI class outside of the GUI thread but when I
> > commented it but the problem didn't go away!
> >
> > Please refer to attached file bagviewer.cpp. Again this happens when i
> try
> > to call setComboBoxIndex in bagviewer.cpp
>
> Please read again what I asked for:
>  - small
>  - self-contained
>  - self-explanatory
>  - compileable (I forgot to say, but self-contained should include this)
>
> Combined, your files have 800 lines of code. You need to shrink that to 200
> (including the main() function) before I'll have a look.
>
> And your bagviewer.h has #include to files that you didn't attach. Please
> make
> sure you remove all the includes except for what you send.
>
> Also, please indicate which line causes the warning to be emitted.
>
> I will not look at your issue until you do as I ask. (Which doesn't imply I
> will the moment you do: this is just a necessary condition, not a
> sufficient
> condition).
>
> > On Mon, May 24, 2010 at 11:48 PM, Thiago Macieira <thiago at kde.org>
> wrote:
> > > Em Terça-feira 25. Maio 2010, às 03.12.30, caius ligarius escreveu:
> > > > Does anybody know why this is happening?
> > >
> > > Wild guess: you're accessing the GUI classes from outside the GUI
> thread.
> > > That
> > > is not allowed in Qt.
> > >
> > > If this is not the case, can you produce a small, self-contained, self-
> > > explanatory testcase of the issue?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list