Closed SneakySly closed 7 years ago
ByteBuffer writeBuffer = ByteBuffer.allocate(100);
You must use a direct byte buffer. Java heap allocations won't work here. The function doesn't check for that yet.
Thanks for the help! It no longer crashes after changing to:
ByteBuffer writeBuffer = ByteBuffer.allocateDirect(mockFileContents.getBytes().length);
Now my problem is that the remote file is not being created (or being written too), but that is a separate issue.
Hey there, I am attempting to utilize steam cloud by writing a chunk to an open stream. After appearing to open a file stream successfully my application crashes when I run:
When looking at the exception when the JVM crashes I see:
Also here are the stack frames:
We are using the latest version of steamworks4j (1.6.2).