List:MySQL++« Previous MessageNext Message »
From:Kang Hyun Joo Date:September 14 2004 2:20am
Subject:String processing problem.-_-;;
View as plain text  
At first, I'm a beginner of Linux and mysql++ programming.

I don't know exactly what's wrong!

It makes a "segmentation fault" as it processes in below code.
Is they anybody having a same experience?
plz help me ASAP.
Thank you ahead!

from Hyunjoo

CODE ========================================== 
   Connection con(db, host, user,pass);
   Query query = con.query();
   (std::ostream&) query << "select * from frwkPrcSupportTable";
   Result res =;
CODE ==========================================

GDB RESULT=====================================
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1075946112 (LWP 28812)]
0x40130f93 in std::ostream::put(char) (this=0xbfffe968, __c=Cannot access memory at address 0xb
) at ostream.tcc:331
warning: Source file is more recent than executable.

331         put(char_type __c)
(gdb) bt
#0  sentry (this=0xbf800030, __os=@0xbffff368) at ostream.tcc:47
#1  0x40130fb3 in std::ostream::put(char) (this=0xbffff368, __c=0 '\0') at ostream.tcc:338
#2  0x40131133 in std::basic_ostream<char, std::char_traits<char> >& std::ends<char, std::char_
traits<char> >(std::basic_ostream<char, std::char_traits<char> >&) (__os=@0xbf800030)
    at ostream:530
#3  0x4009ebf5 in SQLQuery::str(SQLQueryParms const&) const (this=0xbffff368, p=@0xbf800030)
    at ostream.tcc:63
#4  0x4009ec11 in SQLQuery::str(SQLQueryParms const&) const (this=0xbffff368, p=@0xbf800030)
    at sql_query1.hh:188
GDB RESULT=====================================
String processing problem.-_-;;Kang Hyun Joo14 Sep
  • Re: String processing problem.-_-;;Warren Young15 Sep
  • Re: String processing problem.-_-;;Peter A. Kerzum16 Sep