PDA

View Full Version : Emitting signal causes CRASH



navi1084
12th March 2009, 13:40
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

wysota
12th March 2009, 14:30
Can you provide a complete stack trace?

navi1084
12th March 2009, 14:35
Thank You for the reply

Call Stack
> QtCored4.dll!QVector<QList<QObjectPrivate::Connection> >::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++

navi1084
12th March 2009, 15:12
Can anyone help me out ????

spirit
12th March 2009, 15:23
can you prepare compilable example with the problem?

navi1084
12th March 2009, 15:25
Its bit difficult i feel... In my example program i dint face any problems.

spirit
12th March 2009, 15:30
so, the probmlem somewhere in you code. :) without seeing the code it's hard to say why crash causes.

wysota
12th March 2009, 17:17
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.