I have a simple Qt application which has a QDialog with a QTextEdit in it. The dialog has a slot connected to the QClipboard::dataChanged signal. In the slot, I tried to query the MIME data using QMimeData::formats().
If I have my example running and copy anything in a Adobe Air based application, for example Doomi, balsamiq, GMDesk, Visual Studio will report following message:
This may be due to a corruption of the heap, which indicates a bug in Clipboard.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while Clipboard.exe has focus.
The output window may have more diagnostic information.
One thing I noticed that for one copy action in Adobe Air app, Qt will send out at least two dataChanged signal, the first one does not have the MIME data, the rest ones do, but with identical MIME data . Also the above error message always happen the second time the slot is called when it is trying to get the system clipboard by OleGetClipboard.
The simple example I attached won't crash, but our product will after a few copy actions in Adobe Air based app. I feel the heap corruption reported by Visual Studio could be the root cause of our crash.
Please let me know if you need more info.