We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello!
I'm new to Processing and I'm writing some code. I must've done something wrong because "Error: Cannot convert from Void to PImage" appears. I've been trying to find an answer on the Internet, but nothing comes up.
Does anyone know how to solve it? Or where the error could come from?
Thanks
Answers
You likely have a method somewhere that returns void (nothing) and are trying to assign it to a PImage variable.
In these cases it is convenient to post a minimum runnable example reproducing your problem.
Kf
@marialopezsubi -- You are reading the error from the "Console" tab on the bottom of your editor window. Instead:
You will see the line number listed on the right of the error message. The sketch window will scroll to the error line (or just above / below that line) and highlight it.
Thank you very much to all of you for your help. I'll try to solve the problem.
What a great community this is.