go-sciter
go-sciter copied to clipboard
OpenArchive should store a link to the byte slice
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.