JuliaIO / JLD2.jl

HDF5-compatible file format in pure Julia
Other
553 stars 88 forks source link

jldopen(filename, "w";) will fail in win7 #508

Closed HongBinYu-hub closed 9 months ago

HongBinYu-hub commented 10 months ago

Hello,

I'm having trouble using JLD2.

In the win7 operating system, jldopen(filename, "w") defaults to iotype = MmapIO, which will cause an error. But jldopen(filename, "w"; iotype = IOStream) can be written normally. And due to this error, win7 will not be able to precompile the JLD2 library.

data = Dict("key" => "value")
filename = "demo.jld2"

jldopen(filename, "w") do f
    for (k, v) in pairs(data)
        f[string(k)] = v
    end
end

jldopen报错

JonasIsensee commented 9 months ago

This should be fixed now, no?

HongBinYu-hub commented 9 months ago

This should be fixed now, no?

thanks a lot, On win7 system, this problem has been solved.