Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.8.0
-
None
-
Windows7
Description
Hi,
[Some information]
- My application is able to export data to microsoft Excel.
- To do such a thing, I use the class QClipboard to copy data into the clipboard
- And I use an Excel ActiveX to paste data from the clipboard into Excel
But the problem comes from the copy of data into the clipboard...
[How the crash happened]
- Open notepad and type a text
- lauch my application and add data into it
- run the export to excel process of my application (it will copy data into the clipboard)
- At this moment, switch quickly to notepad, select the text and press "ctrl+c" to copy it into the clipboard
- My application crashes..
[Summary]
QClipboard::setMimeData() crashes if at the same time, you copy something from the operating system into the clipboard
[A litle part of the call stack]
ole32 : SetClipboardDataObject : 0xb6
ole32 : OleSetClipboard : 0x4a
QtGui4 : QClipboard::setMimeData : 0x72 : j:\qt\4.7.2\src\gui\kernel\qclipboard_win.cpp @ 266
QtGui4 : QClipboard::setText : 0x6c : j:\qt\4.7.2\src\gui\kernel\qclipboard.cpp @ 353
[Faulty source code]
265:
266: if (OleSetClipboard(d->iData) != S_OK)
[Reason]
Win32 exception - Access violation at 0x00000002: Bad read on 0x00000002
If you need more information, do not hesitate to ask for details. It is not so hard for me to reproduce the issue.
Best regards,
Rémy