runtime error by wxTextCtrl
Manuel Martín
mmartin at ceyd.es
Tue Dec 18 11:28:30 PST 2007
> unsigned long testDialog::GetNextFr()
> {
> packet_num++;
> wxString value;
> value.Printf(_("%d"),packet_num);
> sum_packets_TextCtrl1->SetValue(value);
> return GetNextFrequency();
> }
> Why this strange behaviour? All of the other textctrl works fine for me
> except this one. Thx
> Szurilo
It seems to me this kind of bug is from your code, no from wx's.
Some ideas:
- Where and how is 'sum_packets_TextCtrl1' pointer created?
- Who is his parent? Be aware his control-parent takes ownership
of it, if this parent is a wxWindow.
- What kind of pointers store 'sum_packets'?
- Is this control defined/created twice?
- How the control is refreshed, directly or sending a message
to its parent?
HTH
Manolo
More information about the wx-users
mailing list