Quote:
Originally Posted by euhlmann
1. Yeah, that doesn't make a lot of sense. Maybe free() doesn't always do what we think it does? (not likely)
2. Reflection!
Code:
Constructor<BinaryImage> ct = BinaryImage.class.getDeclaredConstructor();
ct.setAccessible(true);
BinaryImage img = ct.newInstance();
Or modify WPILib and compile it together with your project, probably a solution that makes more sense.
|
Wait would casting MonoImage into BinaryImage work too?