From: Łukasz P. <lu...@cs...> - 2013-12-03 12:08:46
|
Hello, I am new chart user. I am using Static Unicode D/R Multilib Static configuration. In examples and In my project I fund one problem. In Line: wxChartPanel *m_chartPanel = new wxChartPanel(m_panel1); I have assert from library: 12:15:01: ..\..\src\msw\bitmap.cpp(579): 'CreateCompatibleBitmap' failed with error 0x00000057 Generally static charts works ok event if there is this assert but if I do sth like that: dataset->BeginUpdate(); dataset->RemoveAt(0); dataset->Add(i++); dataset->EndUpdate(); Then after some time (sometimes 100 sometimes above 1000 calls of this code above) I have break point: ..\..\src\msw\dcmemory.cpp(116): 'SelectObject(memDC, bitmap)' failed with error 0x00000000. ..\..\src\msw\dcmemory.cpp(118): assers "wxAssertFailure" failed in wxMemoryDC::DoSelect(): Couldn't select a bitmap into wxMemoryDC. Do you know where can be the bug? Best regards, Lukas |