MAV when using clipboard
Archives Forums/Blitz3D Bug Reports/MAV when using clipboard
| ||
I have used some clipboard functions from the code archive, but they create a MAV on exiting. Now this works in Blitz Plus, and there appears to be nothing wrong with the process at all. I'm stumped and now think its a B3d issue. ;**** These added to DECLS **** ;OpenClipboard%(hwnd%):"OpenClipboard" ;CloseClipboard%():"CloseClipboard" ;ExamineClipboard%(format%):"IsClipboardFormatAvailable" ;EmptyClipboard%():"EmptyClipboard" ;GetClipboardData$(format%):"GetClipboardData" ;SetClipboardData%(format%,txt$):"SetClipboardData" ;****************************** Pa$="Test Line Test Line"+Chr$(13)+Chr$(10) For f=1 To 200 Pa1$=Pa1$+Pa$ Next WriteClipboardText(Pa1$) Pa$=ReadClipboardText$() WaitKey Function WriteClipboardText(txt$) Local cb_TEXT=1 If txt$="" Then Return If OpenClipboard(0) EmptyClipboard SetClipboardData cb_TEXT,txt$ CloseClipboard EndIf End Function ;----------------------------------- Function ReadClipboardText$() Local cb_TEXT=1 Local txt$="" If OpenClipboard(0) If ExamineClipboard(cb_TEXT) txt$=GetClipboardData$(cb_TEXT) EndIf CloseClipboard EndIf Return txt$ End Function |
| ||
Works fine here, I tried exiting with both the close button and esc key. It must either be graphics card or OS related. Win 98se/Ati Radeon VE |
| ||
Good to hear that it works on your setup. I guess since this error has never been reported before that I must have a small % setup it doesn't like, but still very annoying. If it was purely to do with the OS (WinXP Service Pack 1) I'd expect to have similar issue with cut and paste from other programs but don't. How could it be a graphics card issue? |
| ||
Try this and tell us if you get a MAV. It's clipboard code for images. If this works then perhaps the bug is in the code itself. http://www.blitzbasic.com/codearcs/codearcs.php?code=1767 Edit: oh yeah it's probably not a gfx card problem. |