[Qt-interest] qtmutex locked - application waits??
caius ligarius
caius9090 at gmail.com
Tue May 25 22:55:02 CEST 2010
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/467c1d8a/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BagViewer.rar
Type: application/octet-stream
Size: 5264 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/467c1d8a/attachment.obj
More information about the Qt-interest-old
mailing list