View Single Post
  #7   Spotlight this post!  
Unread 03-02-2012, 15:33
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
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
Reply With Quote