<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi!<br><br>Error is in svx/source/sdr/overlay/overlaymanagerbuffered.cxx<br><br>386: Window& rWindow = static_cast< Window& >(rmOutputDevice);<br>387: Cursor* pCursor = rWindow.GetCursor();<br><br>Maybe something is with the timing of instructions because there are two lines which are exactly the same, and there works everything:<br><br>240: Window& rWindow = static_cast< Window& >(rmOutputDevice);<br>241: Cursor* pCursor = rWindow.GetCursor();<br><br>So defining rWindow in a wider scope (outside of if(bTargetIsWindow){...} line 238) - and using that same rWindow in subsequent occurrences - seems to solve the problem, at least it makes it less frequent.<br><br>PS.: rWindow is of type Window, which has a member named mpWindowImpl. This is not present in OutputDevice class which is the base class of Window. What value will be assigned to mpWindowImpl in rWindow after Window& rWindow = static_cast< Window& >(rmOutputDevice);<br><br>Szabolcs<br>                                            </div></body>
</html>