WritePixels - DebugMode - Only in OnRender

Monkey Forums/Monkey Bug Reports/WritePixels - DebugMode - Only in OnRender

therevills(Posted 2012) [#1]
When running NoOdle's code from here:
http://www.monkeycoder.co.nz/Community/posts.php?topic=3490

in Debug Mode with Monkey v63b I get the following error:

Monkey Runtime Error: Rendering operations can only be performed inside OnRender.

And the line number points to:
this.WritePixels( pixels, 0, 0, w, h )


If I run it in Release mode it works fine.