You right, I move commit, but still Segmentation fault.

ptr<User> user = session_.find<User>().where("id = ?").bind(app_->userID);

collection< ptr<Project> > collect = user->projects;  //Segmentation
fault in this line

// user->projects: collection< ptr<Project> >  (same type)


I still can not find how to retrieve the collection in a relationship N-M.



I dont know use correctly  GDB, but:

gdb site.wt core
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/john/Tmp/var/www/site.wt...done.
/home/john/Tmp/var/www/core: No such file or directory.
(gdb) bt
No stack.
(gdb)




On 06/03/2011 07:10 PM, Kurt Roeckx wrote:
> On Fri, Jun 03, 2011 at 06:57:10PM -0300, John Robson wrote:
> I think you need to move the commit down, all queries need to run
> inside the transaction.


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to