Dear Samir, could you check the window onCreate() event and sample. I copied the sample from the documentation and I get the error: "window_oncreate.wlua:21: attempt to index a null value (field 'editor')". It looks like the MyWindow:onCreate() event is not esecuted and therefore the editor object is not created.