I found that if you do this it works, but there's obviously something
wrong that needs to be fixed.

rend = wx.wxGridCellBoolRenderer(...) -- same for wxGridCellXXXEditor
rend:IncRef()
rend:IncRef()
grid:SetCellRenderer(1,2,rend)

Regards,
    John

On Thu, Mar 6, 2008 at 11:55 AM, Eero Pajarre <[EMAIL PROTECTED]> wrote:
> There is also some other kind of corruption, even if the grid
>  is not destroyed.
>
>  It might be related to the life time of the GridCellEditors or Renderers as
>  those are created and destroyed quite often.
>
>  Currently my grid ends up with bad CellRenderer:
>  (no wxLua code on stack, but probably the renderer has been
>  deleted earlier....)
>
>  >       t_console.exe!wxGrid::DrawCell(wxDC & dc={...}, const
>  wxGridCellCoords & coords={...})  Line 7595 + 0x2d bytes        C++
>         t_console.exe!wxGrid::DrawGridCellArea(wxDC & dc={...}, const
>  wxGridCellCoordsArray & cells={...})  Line 7516 C++
>         t_console.exe!wxGridWindow::OnPaint(wxPaintEvent & __formal={...})
>  Line 4015       C++
>         t_console.exe!wxAppConsole::HandleEvent(wxEvtHandler *
>  handler=0x014861f0, void (wxEvent &)* func=0x008445f0, wxEvent &
>  event={...})  Line 321  C++
>         t_console.exe!wxEvtHandler::ProcessEventIfMatches(const
>  wxEventTableEntryBase & entry={...}, wxEvtHandler *
>  handler=0x014861f0, wxEvent & event={...})  Line 1227   C++
>         t_console.exe!wxEventHashTable::HandleEvent(wxEvent & event={...},
>  wxEvtHandler * self=0x014861f0)  Line 899 + 0x1c bytes  C++
>         t_console.exe!wxEvtHandler::ProcessEvent(wxEvent & event={...})
>  Line 1287 + 0x1c bytes  C++
>         t_console.exe!wxWindow::HandlePaint()  Line 4562 + 0x1c bytes   C++
>         t_console.exe!wxWindow::MSWWindowProc(unsigned int
>  message=0x0000000f, unsigned int wParam=0x00000000,
>
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  wxlua-users mailing list
>  wxlua-users@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wxlua-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to