Hello, here is my code
open(filename, "w+") do io
C = Mmap.mmap(io, BitArray, (64,10^3));
BinX = getHash(r.x)
C[p, 1] = parse(Int, BinX[p])
After I try to open or delete the created file, but I receive a message that the file is occupied by another program. How to close a file?
C hasn’t been garbage collected. First make sure you’re not storing the return value somewhere (the fact that you need that semicolon means this block returns
C to the caller). Then try calling
I tried GC.gc (), but the result is the same, with the exception of performance degradation.
A runnable example might help (your example references lots of variables that we don’t have). Also details about your platform: Windows is quite different from Linux, for example.
Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer.
Keywords are highlighted to make it easier to refer to specific points.
Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
I’m not entirely sure whether this works, but you could also try to call
finalize(C) after the
Sorry, really GC.gc () helped