On Fri, Aug 27, 2010 at 8:40 AM, AndreArpin <ar...@kingston.net> wrote:
>
>
> Adding the DestroyDebuggerServer prevent exception on termination.
>
> frame:Connect( ID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED,
>        function (event)
>            if not SaveOnExit(true) then return end
>            DestroyDebuggerServer()
>            frame:Close() -- will handle wxEVT_CLOSE_WINDOW
>            CloseWatchWindow()
>        end)
>

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.

Regards,
    John

------------------------------------------------------------------------------
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

Reply via email to