John Labenski <jlaben...@...> writes:
> What do you have to do to give you an exception? I just tried starting > a debug session, step twice, and then close the wxLua executable from > the menu in MSW (exe from SF) and Linux without a problem. I don't > think that DestroyDebuggerServer() is the solution since it tries to > gracefully end the debugging session which I empirically found to > require ~15 idle cycles which it might not get since frame:Close() is > called immediately after. The wxEVT_CLOSE_WINDOW handler forcefully > kills the debuggee if necessary. > I agree but it seem to work on my computer why I do not know. I have change the code to frame:Connect( ids.ID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED, function (event) CloseWatchWindow() if debuggerServer then debuggerServer:StopServer() end debuggerServer = nil if not SaveOnExit(true) then return end frame:Close() -- will handle wxEVT_CLOSE_WINDOW end) I stop the debugger by using exit and I have been having exception regularly. Adding DestroyDebugger seems to work even if it make little sense, I agree. Maybe an odd timing on my computer. I have recoded ID_EXIT as above which I think is a better solution. The watch window should be close before the frame. In my case SaveOnExit should always succeed because I do a SaveAll when enabling the debugger. Thank you Andre PS: My editor is based on Editor but is much more extensive. It understand the bindings. Uses the properties file from Scite by creating a dynamic table similar the one in Scite. For lua, it acquires all the table names dynamically so they are always current. For lua, suggestion for all the wx, wxaui, wxlua, wxstc properties and functions with arguments displayed in the status line, also table, syntax, index and function arguments suggestions are supported. Property files which are translated into lua and can be modified to create arbitrary extensions to the editor this is the way lua extensions are supported. Macros are added in a sub directory and are available as a menu item. Multiple panes are supported to do side by side editing. Search is extended to support find all in single/multiple files. I use freeze and a modified version of wxlua which open files instead of executing them. This is the only very minor modification which was necessary. THANK YOU FOR ALL YOUR WORK. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users