go-sciter icon indicating copy to clipboard operation
go-sciter copied to clipboard

OpenArchive should store a link to the byte slice

Open ameshkov opened this issue 4 years ago • 0 comments

The problem is that Sciter.OpenArchive does not guarantee that the byte array won't be collected by the garbage collector. Eventually, this often leads to archive corruption.

The easy way to solve this would be to store a link to the byte slice, that's passed to OpenArchive or at least mention that it should be saved in the documentation or the method comment.

ameshkov avatar Mar 22 '21 18:03 ameshkov