Author Topic: [wxSmith] wxGrid error when I'm Debuging  (Read 6364 times)

Offline codemania

  • Multiple posting newcomer
  • *
  • Posts: 19
[wxSmith] wxGrid error when I'm Debuging
« on: June 05, 2007, 07:22:53 pm »
When I'm Debuging with wxGrid, it gives me a dialogbox error  "wxWidgets Debug Alert" with this message "../../src/generic/grid.cpp(4329):assert "!m_created" failed in CreateGrid(): wxGrid::CreateGrid or wxGrid::SetTable called more than once"

Sorry my english
« Last Edit: June 05, 2007, 07:30:51 pm by codemania »

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: [wxSmith] wxGrid error when I'm Debuging
« Reply #1 on: June 05, 2007, 07:40:53 pm »
When I'm Debuging with wxGrid, it gives me a dialogbox error  "wxWidgets Debug Alert" with this message "../../src/generic/grid.cpp(4329):assert "!m_created" failed in CreateGrid(): wxGrid::CreateGrid or wxGrid::SetTable called more than once"

Sorry my english
Please manually call either wxGrid::CreateGrid or wxGrid::SetTable right after resource is created because without it wxGrid won't work. wxSmith won't do this automatically because it follows XRC standard.

Regards
   BYO

Offline codemania

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: [wxSmith] wxGrid error when I'm Debuging
« Reply #2 on: June 05, 2007, 09:15:51 pm »
 :lol:
he, he, I made a mistake in my code.
Thanks