Results 1 to 2 of 2

Thread: Access Violation with signal emit

  1. #1
    Join Date
    Sep 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Access Violation with signal emit

    Hello All,

    I am trying to create a GUI which interfaces with a 3rd party DLL and API for a frame grabber board. Within the dll there is a callback function which interfaces with an interrupt which allows users to synchronize their applications. The callback creates a thread and allows users to store raw data to allocated memory and manipulate the data as they please . The issue i am having is signaling my custom slot which essentially refreshes the image with whatever is stored in the allocated memory buffer. Whenever i emit a signal i receive a memory allocation error. Below is call stack:

    Unhandled exception at 0x661c7c1a (Qt5Cored.dll) in MatrixPCIe_ARINC818_GUI_QT.exe: 0xC0000005: Access violation reading location 0x000000000000001a.

    > Qt5Cored.dll!QScopedPointer<QObjectData,QScopedPoi nterDeleter<QObjectData> >::data() Line 132 + 0x5 bytes C++
    Qt5Cored.dll!qGetPtrHelper<QScopedPointer<QObjectD ata,QScopedPointerDeleter<QObjectData> > >(const QScopedPointer<QObjectData,QScopedPointerDeleter<Q ObjectData> > & p) Line 886 + 0x13 bytes C++
    Qt5Cored.dll!QObject::d_func() Line 118 + 0x1a bytes C++
    Qt5Cored.dll!QMetaObject::activate(QObject * sender, int signalOffset, int local_signal_index, void * * argv) Line 3364 + 0xd bytes C++
    Qt5Cored.dll!QMetaObject::activate(QObject * sender, const QMetaObject * m, int local_signal_index, void * * argv) Line 3355 C++
    MatrixPCIe_ARINC818_GUI_QT.exe!MatrixPCIe_ARINC818 _GUI_QT::rawDataChanged(unsigned int * _t1) Line 153 C++
    MatrixPCIe_ARINC818_GUI_QT.exe!UserCallBack(unsign ed int u32Param) Line 251 C++

    Thanks for your help.

  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: Access Violation with signal emit

    Looks like you have a null pointer somewhere. My guess would be that this is thread synchronisation issue in your code.
    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. Access violation using QTableWidget
    By mchome in forum Newbie
    Replies: 2
    Last Post: 4th September 2012, 07:39
  2. Access violation -- qobject.cpp
    By willief in forum Newbie
    Replies: 9
    Last Post: 14th February 2011, 22:55
  3. Access Violation with VS2008
    By Takatschio in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2010, 09:16
  4. QModelIndexList access reading violation
    By Daxos in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2010, 08:32
  5. Access Violation on Signal Emit
    By khagzan in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2007, 22:51

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.