[Qt-interest] Emitting a signal from a callback function called by another thread

Donal O'Connor donaloconnor at gmail.com
Mon Jul 6 13:24:25 CEST 2009


Hey,

Ignore this, time for a redesign of my approach.

Cheers.

On Mon, Jul 6, 2009 at 12:05 PM, Donal O'Connor <donaloconnor at gmail.com>wrote:

> Hi,
>
> I am working on Windows Mobile 6.
>
> I am mixing Windows API programming and QT as I need to access special low
> level functions from a windows dll.
> I resolve pointers to the methods in this dll by using QLibrary and this is
> all working ok.
>
> I've a class that initialises the DLL, creates the pointers etc and calls
> the methods.
> When you initialise with this dll, you pass a notification function and a
> callback function pointer.
>
> This all works ok. The problem is, I want to use the notifications function
> to alert my program that a new notification has arrived.
> I wanted to do this with Signals and slots but there seems to be a problem.
>
> I cannot emit a signal from my notification call back function, I get this
> debug info:
>
> Data Abort: Thread=962c5640 Proc=80096e00 'Prototype.exe'
> AKY=00001001 PC=780eb654(qtcored4.dll+0x0000b654)
> RA=78285758(qtcored4.dll+0x001a5758) BVA=1a000004 FSR=00000407
> The thread 0xb664ab86 has exited with code -2147467259 (0x80004005).
>
> I hope I'm making sense here
>
> Does the QT signal and slot mechanism allow this functionality or am I
> doing something majorly wrong?
>
> Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090706/0e5796f3/attachment.html 


More information about the Qt-interest-old mailing list