Just quickly looking at the code, looks like show() reads past the end of the pixel buffer when in MONO mode. show() assumes the buffer is 3*n bytes long, but update Length() allocates a buffer of n + ((n + 3) / 4) bytes when in MONO mode.
Looking now in the header file, it says not to use MONO mode, but just wanted to make you aware that this needs to be fixed before MONO mode can work.
Just quickly looking at the code, looks like
show()
reads past the end of the pixel buffer when in MONO mode.show()
assumes the buffer is 3*n bytes long, butupdate Length()
allocates a buffer ofn + ((n + 3) / 4)
bytes when in MONO mode.Looking now in the header file, it says not to use MONO mode, but just wanted to make you aware that this needs to be fixed before MONO mode can work.