List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:April 27 2011 3:50am
Subject:Re: crash when using blob on empty table
View as plain text  
On Apr 26, 2011, at 5:45 PM, Dmitry Selin wrote:

> <------><------><------>    Row r = res.fetch_row();//**
> <------><------><------>    if(!r.empty()) //**

Try testing r for truthiness instead.  The bool conversion for Row tests empty() and
several other things.  It may be that one of these other things is critical here.

> and i receive segmentation fault and no exception ...

So run it in a debugger and pull up a stack trace when it crashes.

> i think the problem is in UseQueryResult. 

You'd know that for certain if you had a stack trace.
Thread
crash when using blob on empty tableDmitry Selin27 Apr
  • Re: crash when using blob on empty tableWarren Young27 Apr