I have:
list<Glib::ustring> string_Fish_name;
Gtk::Combo combo_Fish_name;
DB fish_info; //class-interface for DB
//if Connection OK
if (fish_info.DB_Connect("") == -1)
{
// if query OK
if (fish_info.DB_SQL_Query("SELECT fish_name FROM t_fish") == -1)
{
//if count(row) > 0
if (fish_info.DB_Result_n() > 0)
{
//getting result
string_Fish_name = fish_info.DB_Result_values(0);
}
}
}
combo_Fish_name.set_popdown_strings(string_Fish_name);
ERROR: Glib-ERROR **::gmem.c:174:faild allocate 16 bytes
Sometimes crach after widget.show();
Sometimes after 5-10 seconds.
When I use:
string_Fish_name.push_back("fish one");
string_Fish_name.push_back("fish two");
no prolems.
Problems were only after using access to DB
How to solve?
Please help.
Any questions? - I answer.
Attachment:
untitled.JPG
Description: JPEG image