Re: Question about glibmm/Glib::ustring::format
- From: Andrew Potter <agpotter gmail com>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: Question about glibmm/Glib::ustring::format
- Date: Sun, 9 Feb 2014 12:47:12 -0800
On Sun, Feb 9, 2014 at 4:14 AM, Waitman Gobble <uzimac da3m0n8t3r com> wrote:
Program received signal SIGABRT, Aborted.
[Switching to Thread 803006400 (LWP 100327)]
0x0000000801e313ba in kill () from /lib/libc.so.7
(gdb) bt
#0 0x0000000801e313ba in kill () from /lib/libc.so.7
#1 0x0000000801e30069 in abort () from /lib/libc.so.7
#2 0x00000008016ce7da in ?? () from /lib/libcxxrt.so.1
#3 0x000000080085de68 in Glib::ConvertError::throw_func(_GError*) ()
from /usr/local/lib/libglibmm-2.4.so.1
#4 0x000000080086ed2f in Glib::Error::throw_exception(_GError*) ()
from /usr/local/lib/libglibmm-2.4.so.1
#5 0x000000080087bcc2 in Glib::ustring::FormatStream::to_string() const ()
from /usr/local/lib/libglibmm-2.4.so.1
#6 0x0000000000401de0 in Glib::ustring::format<std::__1::ios_base&
(std::__1::ios_base&), std::__1::__iom_t5, double>(std::__1::ios_base& (
const&)(std::__1::ios_base&), std::__1::__iom_t5 const&, double const&) (
a1= 0x401e50: {std::__1::ios_base &(std::__1::ios_base &)} 0x401e50
<std::__1::fixed(std::__1::ios_base&)>, a2=..., a3= 0x7fffffffd860:
3.1428571428571428)
at /usr/local/include/glibmm-2.4/glibmm/ustring.h:1158
#7 0x0000000000401696 in main () at testglib.cpp:9
(gdb)
The code works fine for me, but I'm on Linux.
FormatStream::to_string() has plenty of #ifdefs so its not entirely
obvious what's happening.
Can you catch the exception and print out the Glib::Error::what() ?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]