[odb-users] Query problem

Davide Anastasia Davide.Anastasia at qualitycapital.com
Fri Sep 28 05:46:53 EDT 2012


Hi,

I've hit a problem with retrieval of persisted objects that I cannot
solve! L

 

I have a query statement, that runs fine: the tracer reports the correct
query. I can run it on the pgadmin3 interface without problems and it
gives the expected output. If I ask the size of the iterator, it will
report the right number, but as soon as I deference the iterator with
operator*, I get an segmentation fault (traced to boost::shared_ptr).

 

My code is basically the for loop across the element of a query result
that you can find listed in the manual dozens of times, which I have
used myself many times as well before now.

 

Do you have any idea of what I should look at to understand the problem?

 

Best,

 

Davide Anastasia
Analyst, Research & Development


Quality Capital Management Ltd.
QCM House * Horizon Business Village
No. 1 Brooklands Road
Weybridge * Surrey KT13 0TJ
United Kingdom

Tel: +44 (0) 1932 334 400
Fax: +44 (0) 1932 334 415
Email: Davide.Anastasia at QualityCapital.com
<mailto:Davide.Anastasia at QualityCapital.com> 

www.qualitycapital.com <http://www.qualitycapital.com/> 

________________________________

This email and any attachments are confidential and intended solely for
the use of the individual(s) to whom it is addressed. 

Any views or opinions presented are solely those of the author and do
not necessarily represent those of Quality Capital Management Ltd. If
you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, printing,
forwarding or copying of this email is strictly prohibited. Please
contact the sender if you have received this email in error. You should
also be aware that emails are susceptible to interference and you should
not assume that the contents of this email originated from the sender
above or that they have been accurately reproduced in their original
form. Quality Capital Management Ltd is authorised and regulated by the
Financial Services Authority in the UK and is a member of the National
Futures Association in the US. 

________________________________

 



More information about the odb-users mailing list