Results 1 to 2 of 2

Thread: Switching to Thread -1208416576

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Switching to Thread -1208416576

    Hi,
    I have a program in Qt 4.3 and it is running. I used a thread in that program. But when I run the program it became crash. It display an error message like this, when I use gdb to find the error. The error message is like this,

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread -1208416576 (LWP 24020)]
    0x012a2186 in QSlider::mousePressEvent (this=0xa134498, ev=0x8097aab)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:241
    241 inline void ignore() { m_accept = false; }
    Current language: auto; currently c++

    Please help me to solve this probs.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Switching to Thread -1208416576

    You must not touch GUI in worker threads. Use signals and slots or custom events to deliver the information to the GUI thread.
    J-P Nurmi

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. Replies: 10
    Last Post: 20th March 2007, 22:19
  3. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  4. simple thread layout question
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 11:02
  5. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 21:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.