Opened on Dec 30, 2011 at 9:21:50 AM
Closed on Feb 7, 2012 at 6:03:44 PM
Last modified on Feb 9, 2012 at 2:55:32 PM
#2084 closed Bug (Fixed)
_ClipBoard_GetDataEx Help File Example crash
| Reported by: | wakillon | Owned by: | guinness |
|---|---|---|---|
| Milestone: | 3.3.9.1 | Component: | Standard UDFs |
| Version: | 3.3.8.0 | Severity: | None |
| Keywords: | Cc: |
Description
_ClipBoard_GetDataEx Help File Example crash
when click on Get ClipBoard Data button.
No error messages
just return AutoIT3.exe ended.rc:-1073741819
I'm on Xp sp3.
Attachments (0)
Change History (4)
comment:2 by , on Jan 1, 2012 at 8:21:02 AM
God damn it, does nobody read MSDN? It's pretty fucking clear on this:
The application must not free the handle nor leave it locked. The application must not use the handle after the EmptyClipboard or CloseClipboard function is called,
And of course the code doesn't even try to use the handle until after CloseClipboard() is called so it's just plain broken. The code is shit anyway. There are 2 exit points that do not invoke _ClipBoard_Close(). Best of all those two exit points require user input to pass-through so the clipboard is locked indefinitely waiting on user input in the case of error.
Brilliant!
comment:3 by , on Feb 7, 2012 at 6:03:44 PM
| Milestone: | → 3.3.9.1 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [6781] in version: 3.3.9.1
comment:4 by , on Feb 9, 2012 at 2:55:32 PM
| Component: | Documentation → Standard UDFs |
|---|

I can't reproduce it.
I assume some special data were in the clipboard.
Just try to reproduce and describe what you did