Skip to content

SetFocus failed with exception #168

@tjsr

Description

@tjsr

Logging for future investigation - have seen multiple of these.
Could be due to local changes - maybe not. We'll find out but logging so we have something to track later.

******************************************************************************
* wxPython Exception: 2025-02-11 10:09:16
******************************************************************************
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2270, in <module>
    main()
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2252, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1563, in run
    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3.1.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "H:\dev\CrossMgr\MainWin.py", line 4426, in <module>
    MainLoop()
  File "H:\dev\CrossMgr\MainWin.py", line 4423, in MainLoop
    app.MainLoop()
  File "H:\dev\CrossMgr\env\lib\site-packages\wx\core.py", line 2262, in MainLoop
    rv = wx.PyApp.MainLoop(self)
  File "H:\dev\CrossMgr\env\lib\site-packages\wx\core.py", line 2346, in Notify
    self.notify()
  File "H:\dev\CrossMgr\env\lib\site-packages\wx\core.py", line 3552, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "H:\dev\CrossMgr\LogPrintStackStderr.py", line 31, in DoLogRecord
    traceback.print_stack( file=sys.stderr )
6: ..\..\src\msw\window.cpp(595): 'SetFocus' failed with error 0x00000057 (The parameter is incorrect.).: <wx._core.LogRecordInfo object at 0x000001F5E949D900>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions