AndreArpin writes:
OK, you can ignore all the code but not the thanks.
The problem only exist in my editor inside a focus event.
Sorry about the wasted time but I really appreciate your input.
Andre
PS: will be away for a while, good luck.
-
John Labenski 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 i
On Fri, Aug 27, 2010 at 8:40 AM, AndreArpin 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(
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
On Sun, Aug 22, 2010 at 11:26 AM, AndreArpin wrote:
> change the function SaveFileAs(editor) to read
>
...
>
> This will stop the editor to silently override existing file.
Thanks, I've applied it in CVS.
Regards,
John Labenski
---
change the function SaveFileAs(editor) to read
if fileDialog:ShowModal() == wx.wxID_OK then
local filePath = fileDialog:GetPath()
if not wx.wxFileExists(filePath) or
wx.wxYES == wx.wxMessageBox("File exist replace '"..filePath, "Save
as", wx.wxYES_NO, frame) then