Hi Paul, On 09.08.2013 at 22:08 Paul K wrote:
> Hi Andreas, >> But of course that's not really a solution for me because the crash >> in lua_close() tells me that there is something going wrong... 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? > I agree; I don't like that either, but couldn't track down the source > of the issue. Do the maintainers of wxLua follow this list and is there a chance that they look into such issues? I think the test case I uploaded to http://www.falkenhahn.com/tmp/wxLua.zip is quite straight-forward because it uses unmodified versions of Lua 5.1 and wxLua. So somebody who knows the internals of wxLua & wxWidgets should probably be able to find the problem pretty quickly. For me it's complicated because I hardly know anything about C++. I have 15+ years of experience in plain C but C++ still makes me shiver :) That's why it's very hard for me to find out what's actually going on here. All I can see is that the code that deletes the objects from inside the class destructors makes wxLua crash. And this code is called by lua's garbage collector during lua_close(). > FWIW, the veryminimal sample doesn't crash for me using wx.dll I > compiled using this batch script > (https://github.com/pkulchenko/ZeroBraneStudio/blob/master/build/build-win32.sh); > I actually have binaries for all the platforms and they handle samples > without issues > (https://github.com/pkulchenko/ZeroBraneStudio/tree/master/bin). > I use mingw though vs. your VS. > This is compiled using wxlua and wxwidgets versions as of April 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 that the problem is with Visual C... -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users