Results 1 to 8 of 8

Thread: Emitting signal causes CRASH

  1. #1
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Emitting signal causes CRASH

    Hi,
    I have Shape class which emits many signals to its parent widget. I have signal which emit from shape whenever user move the cursor on widget. Deletion of recent created shape is working fine. but when i move the cursor on widget and shape try to emit the signal for existing shape. Then i get the error in "if (signal >= connectionLists->count()) " of
    void QMetaObject::activate(QObject *sender, int from_signal_index, int to_signal_index, void **argv)


    The error Description is:
    Unhandled exception at 0x671aacfc (QtCored4.dll) in Myapp.exe: 0xC0000005: Access violation reading location 0xa0000008.

    Can anyone please help me out.

    Thank You
    Last edited by navi1084; 12th March 2009 at 13:11.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Emitting signal causes CRASH

    Can you provide a complete stack trace?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Emitting signal causes CRASH

    Thank You for the reply

    Call Stack
    > QtCored4.dll!QVector<QList<QObjectPrivate::Connect ion> >::count() Line 216 + 0xc bytes C++
    QtCored4.dll!QMetaObject::activate(QObject * sender=0x02b47588, int from_signal_index=7, int to_signal_index=7, void * * argv=0x0012bc48) Line 2935 + 0x8 bytes C++
    QtCored4.dll!QMetaObject::activate(QObject * sender=0x02b47588, const QMetaObject * m=0x00c60790, int local_signal_index=3, void * * argv=0x0012bc48) Line 3049 + 0x15 bytes C++

  4. #4
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Emitting signal causes CRASH

    Can anyone help me out ????

  5. #5
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Emitting signal causes CRASH

    can you prepare compilable example with the problem?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  6. #6
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Emitting signal causes CRASH

    Its bit difficult i feel... In my example program i dint face any problems.

  7. #7
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Emitting signal causes CRASH

    so, the probmlem somewhere in you code. without seeing the code it's hard to say why crash causes.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Emitting signal causes CRASH

    This is not a complete stack trace, only the last three calls that are inside Qt libraries. Provide a complete stack trace ranging from main() to the place where the application crashed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. QProcess object not emitting finished(int) signal
    By Tiansen in forum Qt Programming
    Replies: 13
    Last Post: 14th November 2008, 12:17
  4. Replies: 3
    Last Post: 15th April 2007, 19:16
  5. cost of emitting signal
    By quickNitin in forum Newbie
    Replies: 1
    Last Post: 29th November 2006, 08:53

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.