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

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to