[gnome-db] Re: gdamm1.3.4: segfault on data_model->get_n_rows();
- From: Daniel Holbach <dh mailempfang de>
- To: Carl Nygard <cjnygard fast net>, gnome-db-list <gnome-db-list gnome org>, gnomemm-list <gnomemm-list gnome org>, Murray Cumming <murrayc murrayc com>
- Cc:
- Subject: [gnome-db] Re: gdamm1.3.4: segfault on data_model->get_n_rows();
- Date: Wed, 17 Nov 2004 21:20:10 +0100
Hai,
Am Mittwoch, den 17.11.2004, 19:58 +0100 schrieb Murray Cumming:
> It would be more interesting to dig a little deeper and see what really
> is 0. Maybe it's the GdaDataModel*, though Gda::DataModel::operator bool
> () should have checked that.
I'm not quite sure how or where to dig at all, but here is what I found
out after some (separated) testing:
works:
GdaDataModel* gdadm = data_model->gobj();
std::cout <<
gda_value_stringify(const_cast<GdaValue*>(gda_data_model_get_value_at(gdadm,1,0))) << std::endl;
doesnt work:
std::cout << gda_data_model_get_n_rows(gdadm) << std::endl;
doesnt work either:
std::cout << data_model->get_value_at(1, 0).to_string();
I'll try anything you suggest, thanks for your patience,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]