Lazarus compiled from trunk on Windows XP

Steps to reproduce:
1) Start Lazarus
2) _Quickly_ select some text and press Ctrl+C
4) "Clipboard copy operation failed" exception is raised

The issue reproduces unreliably, an seems to be timing-related.
It fails 95% of the time with the recipe above, but also fails perhaps 5%
of the time randomly during source editing.

Backtrace is below, but is IMHO useless, because exceptions are
'eaten' inside DoCopyToClipboard procedure:

#0  0x0040b0b6 in fpc_raiseexception ()
#1  0x0069e7af in TCUSTOMSYNEDIT__DOCOPYTOCLIPBOARD (
    STEXT=0x66802e8 'R2_2_0}'#13#10'{$DEFINE
HASSQLITE3CONNECTION}'#13#10'{$ENDIF}'#13#10'{$ENDIF}'#13#10#13#10'{
SQLSCRIPT }'#13#10'{$IFNDEF VER2_2_0}'#13#10'{$DEFINE
HASSQLSCRIPT}'#13#10'{$ENDIF}'#13#10'interface'#13#10#13#10'uses'#13#10'
 Classes, SysUtils, LResources, db, sqldb, ibcon'..., this=0x52e1d20)
    at synedit.pp:1365
#2  0x0069e83a in TCUSTOMSYNEDIT__COPYTOCLIPBOARD (this=0x52e1d20)
    at synedit.pp:1426
#3  0x006af14c in TCUSTOMSYNEDIT__EXECUTECOMMAND (COMMAND=201, ACHAR='',
    DATA=0x0, this=0x52e1d20) at synedit.pp:8380
#4  0x006ac720 in TCUSTOMSYNEDIT__COMMANDPROCESSOR (COMMAND=201, ACHAR='',
    DATA=0x0, this=0x52e1d20) at synedit.pp:7511
#5  0x006a0b7d in TCUSTOMSYNEDIT__KEYDOWN (KEY=0, SHIFT=[SSCTRL],
    this=0x52e1d20) at synedit.pp:2275
#6  0x004e32c6 in TWINCONTROL__KEYDOWNBEFOREINTERFACE (KEY=0, SHIFT=[SSCTRL],
    this=0x52e1d20) at wincontrol.inc:4981
#7  0x004e3555 in TWINCONTROL__DOKEYDOWNBEFOREINTERFACE (MESSAGE=
      {MSG = 48384, CHARCODE = 0, UNUSED = 0, KEYDATA = 3014657, RESULT = 0},
    this=0x52e1d20) at wincontrol.inc:5117
#8  0x004e50e7 in TWINCONTROL__CNKEYDOWN (MESSAGE=
      {MSG = 48384, CHARCODE = 0, UNUSED = 0, KEYDATA = 3014657, RESULT = 0},
    this=0x52e1d20) at wincontrol.inc:6200
#9  0x0040aa09 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#10 0x004e50d0 in TWINCONTROL__WMSIZE (MESSAGE=
      {MSG = 48384, SIZETYPE = 0, WIDTH = 1, HEIGHT = 46, RESULT = 0},
    this=0x52e1d20) at wincontrol.inc:6188
#11 0x004e2a54 in TWINCONTROL__WNDPROC (MESSAGE=
      {MSG = 48384, WPARAM = 0, LPARAM = 3014657, RESULT = 0, WPARAMLO
= 0, WPARAMHI = 0, LPARAMLO = 1, LPARAMHI = 46, RESULTLO = 0, RESULTHI
= 0},
    this=0x52e1d20) at wincontrol.inc:4749
#12 0x006ab39e in TCUSTOMSYNEDIT__WNDPROC (MSG=
      {MSG = 48384, WPARAM = 0, LPARAM = 3014657, RESULT = 0, WPARAMLO
= 0, WPARAMHI = 0, LPARAMLO = 1, LPARAMHI = 46, RESULTLO = 0, RESULTHI
= 0},
    this=0x52e1d20) at synedit.pp:7022
#13 0x0058f393 in DELIVERMESSAGE (TARGET=0x52e1d20, AMESSAGE=void)
    at lclmessageglue.pas:103
#14 0x0055f32d in WINDOWPROC (WINDOW=3343164, MSG=256, WPARAM=67,
    LPARAM=3014657) at win32callback.inc:2403
#15 0x77d38734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#16 0x0033033c in ?? ()
#17 0x00000100 in ?? ()
#18 0x00000043 in ?? ()
#19 0x002e0001 in ?? ()
#20 0x0055d110 in GETNEEDPARENTPAINT (AWINDOWINFO=0x55d110,
    AWINCONTROL=0x6fd70) at win32callback.inc:204
#21 0x77d38816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#22 0x0055d110 in GETNEEDPARENTPAINT (AWINDOWINFO=0x0, AWINCONTROL=0x77d38830)
    at win32callback.inc:204
#23 0x77d389cd in USER32!GetWindowLongW () from C:\WINDOWS\system32\user32.dll
#24 0x00000000 in ?? ()


-- 
Alexander S. Klenin
Insight Experts Ltd.
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to