Mladen Turk wrote:
Scott M Stark wrote:
> Thanks, can you send me the JvmWrapper class and native code?
>
In the attachment under jvmdio/Release.
Here is again with the slightly more safe and verbose output.
> So, it seems that driver msg was indicating a prematurely closed stream.
>
Right. The problem is that I cannot get the file name
What I mean, there was no detailed exception message,
because the JVM is stupid in that area:
... in handleRead:
if (h == INVALID_HANDLE_VALUE) {
return -1;
}
Later it calls GetLastError() in readBytes if
handleError returns -1, and that is always 0 (no error)
and the thrown is "Read error".
Not sure how get the filename that is problematic, but
that's for you to find thought ;)
Cheers,
Mladen.