[wxlua-users] Using wxLua with Lua 5.0.2

2013-08-09 Thread Andreas Falkenhahn
close()? Thanks for some feedback! -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubles

Re: [wxlua-users] Using wxLua with Lua 5.0.2

2013-08-09 Thread Andreas Falkenhahn
Lua-2.8.10-src.tar.gz Is there any official download for the sources of 2.8.12.2? On 09.08.2013 at 15:37 Andreas Falkenhahn wrote: > Hi, > I need to get wxLua running with Lua 5.0.2. I think I made all the necessary > changes and I have it basically working now but at the end when lua_clo

Re: [wxlua-users] Using wxLua with Lua 5.0.2

2013-08-09 Thread Andreas Falkenhahn
veryminimal.wx.lua you'll see that it runs but crashes on exit. Does anybody have an explanation for this behaviour? I use the Visual C compiler. On 09.08.2013 at 17:36 Andreas Falkenhahn wrote: > Hmm, I tried it now using Lua 5.1 and it crashes as well could it be that > I'm > using

Re: [wxlua-users] Using wxLua with Lua 5.0.2

2013-08-09 Thread Andreas Falkenhahn
.. it doesn't happen with the official builds of wxLua for Windows. This is why I'm even more curious what could be the cause for this crash... any other ideas? Thanks -- Best regards, Andreas Falkenhahn

[wxlua-users] Crash on lua_close() [was: Using wxLua with Lua 5.0.2]

2013-08-09 Thread Andreas Falkenhahn
with a > couple of tweaks to wxlua that I documented in the build script. It > does still crash though in some other cases, so I do have os.exit in > my application as well. Ok, maybe I'll try it with mingw but I can hardly believe th

Re: [wxlua-users] Crash on lua_close() [was: Using wxLua with Lua 5.0.2]

2013-08-10 Thread Andreas Falkenhahn
h at the end, when the program is about to be terminated. -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com -- Get 100% visibility into Java/.NET code with AppDynamics Lite!

Re: [wxlua-users] Using wxLua with Lua 5.0.2

2013-08-10 Thread Andreas Falkenhahn
old. It isn't related to 5.0.2 because the same issue happens with Lua 5.1. It was just my first thought that it could be related to 5.0.2 but tests have shown that it happens with 5.1 too... see the example in the archive above. -- Best regards, Andreas Falkenhahn

Re: [wxlua-users] Crash on lua_close() [was: Using wxLua with Lua 5.0.2]

2013-08-10 Thread Andreas Falkenhahn
ee/trunk/wxLua/apps/wxluafreeze/wxluafreeze.cpp > > or this which is for loading from a DLL, note the wxApp too. > http://sourceforge.net/p/wxlua/svn/184/tree/trunk/wxLua/modules/luamodule/luamodule.cpp Yes, luamodule.

[wxlua-users] Potential memory fault in wxLua

2013-08-10 Thread Andreas Falkenhahn
they're on the stack. Once they've been popped, they could become invalid at any time. Thus, the code posted above could lead to a memory access fault under certain conditions. -- Best regards, Andreas Falkenhahn mailto:a

[wxlua-users] Typo in calculator.wx.lua

2013-08-10 Thread Andreas Falkenhahn
Hi, just discovered some small typos in the calculator.wx.lua sample: when setting up the accelerator table it uses wx.VXK_NUMPAD several times... but this is apparently a nil reference. The correct reference is wx.WXK_NUMPAD, i.e. WXK instead of VXK. -- Best regards, Andreas Falkenhahn

[wxlua-users] Superfluous condition in scribble.wx.lua?

2013-08-13 Thread Andreas Falkenhahn
a value of type "userdata" on the stack. Thus, the condition check is superfluous because it is always TRUE and SetToolTip() will always be called. Correct me if I overlooked something here... -- Best regards, Andreas Falkenhahn mailto:an

[wxlua-users] Bug in wxImage::SetAlphaData()?

2013-08-13 Thread Andreas Falkenhahn
Thus, the code above is likely to crash if the user calls SetAlphaData() with a string containing more than width*height bytes. Instead, it should be: size_t size = self->GetWidth()*self->GetHeight(); memcpy(self->GetData(), data, wxMin(len, size)); -- Best regards,

[wxlua-users] unsigned char* wxImage::GetAlpha() missing

2013-08-15 Thread Andreas Falkenhahn
e function expected to return if wxImage::GetAlpha() returns NULL? Currently it returns wx.NULL but of course it could also be made to return NIL, an empty string, or even nothing here not sure how wxLua is supposed to behave in this case. -- Best regards, Andreas Falkenhahn

[wxlua-users] Bug in wxlua_getBindMethodArgsMsg()?

2013-08-15 Thread Andreas Falkenhahn
wxImage::wxImage(string [, number]) 04. wxImage::wxImage(number , number [, boolean]) 05. wxImage::wxImage(wxImage) 06. wxImage::wxImage() -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com

[wxlua-users] Getting window class names in wxLuaWinDestroyCallback

2013-08-25 Thread Andreas Falkenhahn
but in each callback I get a different class name. How can this be? I'd expect to get "wxFrame" in each callback but instead I get "wxFrame" only in the constructor. In the other two callbacks it is "wxWindow" and then even "wx

[wxlua-users] How to easily override wxWindow::Destroy in wxLua

2013-08-25 Thread Andreas Falkenhahn
arted. Thanks! -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your

Re: [wxlua-users] [ANN] wxLua 2.8.12.3

2013-09-13 Thread Andreas Falkenhahn
p://wxlua.sourceforge.net > Regards, > John Labenski -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com -- How ServiceNow helps IT people transform IT departments

[wxlua-users] SetSizeHints()

2013-10-02 Thread Andreas Falkenhahn
frame:Show(true) wx.wxGetApp():MainLoop() -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- October

[wxlua-users] wx.wxNOT_FOUND undefined

2013-10-03 Thread Andreas Falkenhahn
Hi, wxLua currently doesn't seem to expose the wxNOT_FOUND constant which is often used when working with various controls. I think the following line should be added to bindings/wxcore_defsutils.i to make wx.wxNOT_FOUND available to wxLua: #define wxNOT_FOUND -- Best regards, An

[wxlua-users] Where do wxLuaEventCallbacks get deleted?

2013-10-05 Thread Andreas Falkenhahn
tion is right. I just need to know what code in wxLua triggers the wxLuaEventCallback dtor. Thanks! -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- October Webinars: Code for P

Re: [wxlua-users] Where do wxLuaEventCallbacks get deleted?

2013-10-05 Thread Andreas Falkenhahn
t I don't know enough about C++ and wxWidgets to be able to tell where exactly the dtor is invoked. I'd assume that it is the call to Unref() in ClearwxLuaState() but I'm not sure, that's why I'd like to have some feedback on it...

Re: [wxlua-users] Where do wxLuaEventCallbacks get deleted?

2013-10-08 Thread Andreas Falkenhahn
ction, this is to be expected. Thanks for the explanation. I didn't know that wxWidgets will delete the user data passed to Connect(). -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com -

[wxlua-users] Manual delete on wx

2013-11-15 Thread Andreas Falkenhahn
:delete(wxEvtHandler(self)) Am I missing something here or is this a bug? -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- DreamFactory - Open Source REST & JSON Services

Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread Andreas Falkenhahn
On 15.11.2013 at 23:28 John Labenski wrote: > On Fri, Nov 15, 2013 at 4:23 PM, Andreas Falkenhahn > wrote: > > Hi, > > how is manual delete supposed to work in wxLua? I tried to call > > myButton = wx.wxButton() > myButton:delete() > > You are

Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread Andreas Falkenhahn
On 15.11.2013 at 23:37 John Labenski wrote: > On Fri, Nov 15, 2013 at 5:34 PM, Andreas Falkenhahn > wrote: > > On 15.11.2013 at 23:28 John Labenski wrote: > >> You are supposed to use myButton:Destroy() to let wxWidgets >> properly delete it. The delete() fun

[wxlua-users] Referencing objects

2013-11-17 Thread Andreas Falkenhahn
. wxObject has a Ref() method but that doesn't seem to be up for the job. Any hints? -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- DreamFactory - Open Source REST & JSO

Re: [wxlua-users] Referencing objects

2013-11-18 Thread Andreas Falkenhahn
On 17.11.2013 at 19:37 John Labenski wrote: > On Sun, Nov 17, 2013 at 9:21 AM, Andreas Falkenhahn > wrote: > > Hi, > > what's the recommended way to prevent objects from being garbage collected? > For example, I create a wxImageList and pass it to > wxNo

[wxlua-users] Multiple listeners

2013-11-21 Thread Andreas Falkenhahn
wxID_ANY seems to confuse wxLua here because even if the user clicks the wxRadioBox that has the id RadioPage_Radio wxLua will still run the OnRadioBox2() callback. Is that a bug or some kind of limitation? Thanks! -- Best regards, Andreas Falkenhahnmailto:andr

Re: [wxlua-users] Multiple listeners

2013-11-23 Thread Andreas Falkenhahn
ries of Connect() calls which led to the general handler getting called first. -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com -- Shape the Mobile Experience: Free Subscri

[wxlua-users] Overriding OnRightClick

2013-11-23 Thread Andreas Falkenhahn
idn't work: local ctrl = wx.wxTextCtrl(...) ctrl.OnRightClick = function(event) print("test") end -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com -- Shape the Mob

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread Andreas Falkenhahn
n't think the tree ctrl events will work on them... -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com -- Shape the Mobile Experience: Free Subscription Software experts and develo

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread Andreas Falkenhahn
Hi John, On 24.11.2013 at 06:44 John Labenski wrote: > On Nov 23, 2013 4:30 PM, "Andreas Falkenhahn" wrote: >> Hi, >> I'm trying to port some C++ code to wxLua that derives a new class from >> wxTextCtrl and then overrides the OnRightClick() method of t

Re: [wxlua-users] Overriding OnRightClick

2013-11-25 Thread Andreas Falkenhahn
On 25.11.2013 at 05:17 John Labenski wrote: > On Sun, Nov 24, 2013 at 5:13 AM, Andreas Falkenhahn > wrote: > > Hi John, > > >>> I'm trying to port some C++ code to wxLua that derives a new class from >>> wxTextCtrl and then overrides the OnRig