|
Re: ImaqThreshold error
MikeTS,
Two items --
1) while it is true that GetImage should not fail, the memory (out of memory) situation is exactly why you SHOULD check it.
2) Regarding the height/width item...I totally agree. I think the right thing to do would be to file a bug report on WPILib so that they could do "int height=0;" or "int height=-1;" at declaration in case the imaq call fails.
bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
|