|
From: John L. <jla...@gm...> - 2006-05-30 02:41:37
|
On 5/29/06, Leandro Motta Barros <lmb...@gm...> wrote:
> On 5/29/06, John Labenski <jla...@gm...> wrote:
> > On 5/28/06, Leandro Motta Barros <lmb...@gm...> wrote:
> > >
> >
> > This message is encoded somehow. Are you doing something funky when
> > you send it? It looks like you're sending from a gmail account and I'm
> > trying to read it from one as well... Perhaps you're using the rich
> > text feature? Plain text is always preferred for newsgroups like this
> > so that everyone can read it using anything.
>
> A copy of my original email follows, I hope it is readable now. Sorry
> for thee trouble.
No trouble, it just won't get a proper response...
> ----
>
> Hello, it's me again...
>
> I'm still struggling to use the latest wxLua snapshot. Currently my
> problem is calling wxLua stuff from a Lua coroutine. If try to call
> any wxLua method from a coroutine I get an error. For example, if I
> have something like
>
> local bmp = wx.wxEmptyBitmap (0, 0)
> bmp:LoadFile ("Foo.xpm", wx.wxBITMAP_TYPE_XPM)
>
> I get the following message:
>
> "Attempt to call method 'LoadFile' (a userdata value)"
>
> It seems that wxLua *is* being compiled with WXLUA_LUA_NEWTHREAD
> defined, and I have no idea on what else may be wrong.
>
> I'm using wxLua CVS snapshot 2006-05-27, wxGTK 2.6.2, GCC 3.4.3 on Linux.
Try unremming the wxPrintf statement in wxLuaState_newthread_handler
in modules/wxlua/src/wxlstate.cpp and see if that gets run when the
coroutine is created. We had to make changes for running wxLua as a
lua module for require, maybe it's broken now.
Regards,
John Labenski
ps. could you send a little coroutine code to show the problem, we
could add it as a sample in wxLua to help verify that they still work.
I seem to have lost my little sample.
|