> 
> char tmp[10];
> sprintf(tmp, "%.2g\0", monfiltre->getcapah());
> cb_data->c1->label(tmp);
> cb_data->c1->clear_visible();
> cout<<"Temp="<<cb_data->c1->label()<<"--"<<tmp<<endl;
> sprintf(tmp, "%.2g\0", monfiltre->getselfh());
> cb_data->s1->label(tmp);
> 
> Note that the "cout"  give me the good values.

I suspect that your string "tmp" is going out of scope, so the pointer
to it that you passed to label() becomes invalid.

Either make your string static, or use copy_label() instead of label()
should fix it, I think.




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to