Re: Question about glibmm/Glib::ustring::format

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/
(gdb) bt
#0  0x0000000801e313ba in kill () from /lib/
#1  0x0000000801e30069 in abort () from /lib/
#2  0x00000008016ce7da in ?? () from /lib/
#3  0x000000080085de68 in Glib::ConvertError::throw_func(_GError*) ()
   from /usr/local/lib/
#4  0x000000080086ed2f in Glib::Error::throw_exception(_GError*) ()
   from /usr/local/lib/
#5  0x000000080087bcc2 in Glib::ustring::FormatStream::to_string() const ()
   from /usr/local/lib/
#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:
    at /usr/local/include/glibmm-2.4/glibmm/ustring.h:1158
#7  0x0000000000401696 in main () at testglib.cpp:9

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() ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]