In the oodraw.rex sample there is this logic:
self~InitCode = self~createcenter(200,235,"OODialog Color Drawing Demonstration",,,"System", 8)
However, initCode is suppossed to be 0 for no error and non-zero for error. createCenter() on the other hand return 0 for error and 1 for no error. With the current code, initCode gets set to 0 when there is an error and non-zero when there is no error.