<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I used this...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><A 
href="http://www.squeakvm.org/win32/release/SqueakVM-Win32-3.10.2-bin.zip">http://www.squeakvm.org/win32/release/SqueakVM-Win32-3.10.2-bin.zip</A></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and the VM crashes when i try to copy the code of a 
method.</FONT></DIV>
<DIV><FONT face=Arial size=2>To reproduce:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1) Open a Browser.</FONT></DIV>
<DIV><FONT face=Arial size=2>2) Select the code of any method.</FONT></DIV>
<DIV><FONT face=Arial size=2>3) Try to copy...boom.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Now, the copy/paste method works fine for Workspace 
data.</FONT></DIV>
<DIV><FONT face=Arial size=2>The crash looks like a faulty memory allocation. 
Listen what i encountered a few days ago...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Many of the methods inside the squeak image have 
"return character" proper CrLf ( 13 &amp; 10 ).</FONT></DIV>
<DIV><FONT face=Arial size=2>Andreas, </FONT></DIV>
<DIV><FONT face=Arial size=2>i feel that in your VM code you either count less 
bytes with ClipboardSize or you allocate small buffer for translating to 
UTF8...</FONT></DIV>
<DIV><FONT face=Arial size=2>I had encountered this when i was implementing the 
clipboard functionality... take a look at the sqWin32Window.c that i have inside 
the zip file i've posted.</FONT></DIV>
<DIV><FONT face=Arial size=2>It works OK...It must be a detail you've missed 
there...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Christos.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>