strange behavior...



Hi All,
I have recently integrated gtkdatabox into my application and have
following error message as long as the graph that I draw is a line (it
is also not displayed):
CRITICAL **: gtk_databox_set_total_limits: assertion `left != right &&
top != bottom' failed
only after it becomes a curve it starts being displayed and the error
disappears. ( I use following code to display the graphs):

			graph = gtk_databox_lines_new (recordsNum,
											s->getParameters()->getThermosensor(i)->getTimeArray(),
											s->getParameters()->getThermosensor(i)->getTemperatureArray(),
											&color, 1);
			gtk_databox_graph_add (GTK_DATABOX
(s->getGui()->simulationPage.dataBoxThermosensor), graph);
			gtk_databox_auto_rescale (GTK_DATABOX
(s->getGui()->simulationPage.dataBoxThermosensor), 1);

furthermore : gtk_databox_graph_remove_all doesn't seem to always work...
I run a heavy computation in a separate thread(all the changes to gui
happen in main thread using g_idle_add and a callback function) that
uses 100% of CPU - could this fact cause the above mentioned problems?

thank you in advance
Zeev Pekar


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]