it is just happening ( by the forum topic editor ) when you post code here
</> code tag
@jeffmarc at first, processing is a project structured IDE
so it supports firstly a relative file read and save.
they wanted to make it very smart so the
read operations use the sketch path AND its sub dir /data/
write can obviously only use one, here the sketchpath
and that folder was created and the file was written,
but i am on Win 10 as usual admin user ( but was not asked for permission )
( a linux OS would never allow to write there without “sudo” )
is it possible that you are login as a user with reduced privileges?
Windows might prevent you from writing there.
you should test that manually from file manager first.
anyhow back to default, you did confirm that writing to
sketchbook path (or its /data/ ) path works fine?
anyhow it would also confirm that processing installation is OK
JAVA execution not blocked by windows defender.
what / where is that? and does that still happen?
again, if windows is in a condition ( like hard disk error… )
a manual test to create folder and file would check on that.
Tested OK on my Win 8.1 laptop.
saved to the C:/avsufa directory OK
So must be a windows thing on win 10 pro but I don’t know what.
I am signed in as admin , what else do you need to write to any directory?
Using Processing 2.2.1
Works fine with Win 8.1
Two programs, same libraries and same camera, one works and the other doesn’t?
I’d suggest starting by stripping down your broken program until you get down to just the image grab and display – nothing else. At some point, you will might remove something “unrelated” and be surprised when it start working.
OK , i know i can do that , just wondered if anybody had a clue what might cause this.
I have put test code in draw() loop to grab an image every 10 frames.
It counts up to 10 grabs a frame and then never gets reset by camavailable() true .
But it never goes true again so its just looping doing nothing and i get one image grabbed and displayed
its a simple loop: if framecount=10 and camavailable=true then camread, display image , reset frame count to 0, increment framecount in draw loop