Hi

I have encountered this error numerous time using the current version.
Notice that notebook.PageCount works but notebook:GetPageCount() invoking the
same funtion fails.
I have tried to track it in the debugger but no luck so far. 


671    if (selection >= 0) and (selection < notebook.PageCount) then
672->        editor = 
notebook:GetPage(selection):DynamicCast("wxStyledTextCtrl")
        assert(editor )
    end


lua: Error while running chunk
C:\Programs\wxWidgets\wxLua\samples\lunedit.wx.lua:672: attempt to call method
'GetPage' (a userdata value)
stack traceback:
        C:\Programs\wxWidgets\wxLua\samples\lunedit.wx.lua:672: in function 
'GetEditor'
        C:\Programs\wxWidgets\wxLua\samples\lunedit.wx.lua:1821: in function
<C:\Programs\wxWidgets\wxLua\samples\lunedit.wx.lua:1820>

-----------------------changing notebook.PageCount to notebook:GetPageCount()

will cause the error to be on notebook:GetPageCount() 

this occurs from time to time


line 1819 and 1821 are
frame:Connect(ID_SAVE, wx.wxEVT_UPDATE_UI,
        function (event)
            local editor = GetEditor()


Any idea will be welcome.

Andre


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to