[Vm-dev] Clipboard VM crash

Chris Petsos chrispetsos at sch.gr
Mon Jun 4 08:08:14 UTC 2007

I used this...


and the VM crashes when i try to copy the code of a method.
To reproduce:

1) Open a Browser.
2) Select the code of any method.
3) Try to copy...boom.

Now, the copy/paste method works fine for Workspace data.
The crash looks like a faulty memory allocation. Listen what i encountered a few days ago...

Many of the methods inside the squeak image have "return character" proper CrLf ( 13 & 10 ).
i feel that in your VM code you either count less bytes with ClipboardSize or you allocate small buffer for translating to UTF8...
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.
It works OK...It must be a detail you've missed there...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20070604/406400cb/attachment.htm

More information about the Vm-dev mailing list