Home » U++ Library support » ScatterDraw & ScatterCtrl » crash while using scatterctrl
crash while using scatterctrl [message #44409] |
Sat, 07 March 2015 13:20  |
aftershock
Messages: 143 Registered: May 2008
|
Experienced Member |
|
|
Hi,
I have a problem, I do not seem to able to use scatterctrl.
I have a tabctrl. I have a layout which contains scatterctrl.
Layout is added to the tabctrl.
Vector<Pointf> data_equity,data_balance;
performance.chart.RemoveAllSeries();
for (int i=0; i< order_history.order_info.GetCount();i++)
{
data_equity << Pointf(i,order_history.order_info.Get(i,7));
data_balance << Pointf(i,order_history.order_info.Get(i, );
}
performance.chart.AddSeries(data_balance).Legend("balance");
performance.chart.AddSeries(data_equity).Legend("equity").Units( "km/h").NoMark().Stroke(2, Gray()).Dash(LINE_SOLID).Fill(LtGray());;
/
if I add series , it crashes when I switch to the tab which contains the scatterctrl.
case WM_PAINT:
ASSERT_(!painting || IsPanicMode(), "WM_PAINT invoked for " + Name() + " while in Paint routine");
ASSERT(hwnd);
if(hwnd) {
PAINTSTRUCT ps;
It fails for M_PAINT invoked for " + Name() + " while in Paint routine");
I use the latest upp.
aftershock
|
|
|
|
Re: crash while using scatterctrl [message #44421 is a reply to message #44411] |
Mon, 09 March 2015 10:29  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello aftershock
In addition, please remember that ScatterDraw does not keep any data, so data has to be kept safely.
For example, if data is declared in a function that fills the Scatter, and if you need the Scatter after leaving the function, you will get errors as Scatter will try to use data that has been freed.
Best regards
IƱaki
[Updated on: Mon, 09 March 2015 10:29] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 15:08:55 CEST 2025
Total time taken to generate the page: 0.00607 seconds
|