loadImage() leaves files open (Windows 7)
in
Integration and Hardware
•
11 months ago
I have a sketch, which loads and shows some images that are generated in an external process outside of processing. Like so:
The external process tries to overwrite the files after they have been read into Processing, but this leads to a filesystem error because the files stay in an "open" state for an uknown duration after being read. Sometimes the files close immediately but sometimes it takes over 30 seconds for the overwrite to succeed. This is behaviour has been seen on 2 separate Windows 7 machines.
Has anyone run into this problem? Is there anything I can do?
- for (int i = 0; i < imgCount; i++)
{
imgs[i] = loadImage("lahti240_urban_"+(2013+i)+".gif");
}
The external process tries to overwrite the files after they have been read into Processing, but this leads to a filesystem error because the files stay in an "open" state for an uknown duration after being read. Sometimes the files close immediately but sometimes it takes over 30 seconds for the overwrite to succeed. This is behaviour has been seen on 2 separate Windows 7 machines.
Has anyone run into this problem? Is there anything I can do?
1