|
From: Andre <ar...@ki...> - 2007-07-31 00:02:46
|
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
|