i work in my Software-Project with QxOrm.
In one Method i fill a DataStructure with Data from the Database:
- Code: Select all
typedef boost::shared_ptr<MyObject> myobject_ptr;
typedef std::vector<myobject_ptr> type_lst_myobjects;
type_lst_myobjects mydatastructure;
mydatastructure.clear(); // std::vector
qx::QxSqlQuery query("");
QSqlError daoError = qx::dao::fetch_by_query(query, mydatastructure);
In the last line my Memory Leak Finder (Visual Leak Detector from codeplex Platform) says that there is a Memory Leak and i don't know why.
The last line is the last place on the stack trace which i wrote by myself. after that the stack goes Forward with qxorm and boost files.
Whats wrong? Where is my mistake?
d:\qxorm\inl\qxdatamember\qxdatamemberx.inl (164): myprogram.exe!qx::QxDataMemberX<MyObject>::relationManyToOne<boost::shared_ptr<AnotherObject>,MyObject> + 0x7 bytes
d:\qxorm\inl\qxdatamember\qxdatamemberx.inl (128): myprogram.exe!qx::QxDataMemberX<MyObject>::relationManyToOne<boost::shared_ptr<AnotherObject>,MyObject> + 0x19 bytes
d:\qxorm\inl\qxregister\qxclass.inl (91): myprogram.exe!qx::QxClass<MyObject>::relationManyToOne<boost::shared_ptr<AnotherObject>,MyObject> + 0x1E bytes
d:\projects\myprogramapp\ormclasses.cpp (192): myprogram.exe!qx::register_class<qx::QxClass<MyObject> > + 0x23 bytes
d:\qxorm\include\qxregister\qxclass.h (155): myprogram.exe!qx::QxClass<MyObject>::registerClass + 0x10 bytes
d:\qxorm\include\qxregister\qxclass.h (165): myprogram.exe!qx::QxClass<MyObject>::beforeRegisterClass
d:\qxorm\inl\qxregister\qxclass.inl (40): myprogram.exe!qx::QxClass<MyObject>::init
d:\qxorm\include\qxregister\qxclass.h (92): myprogram.exe!qx::QxClass<MyObject>::QxClass<MyObject> + 0xCC bytes
d:\qxorm\inl\qxsingleton\qxsingleton.inl (39): myprogram.exe!qx::QxSingleton<qx::QxClass<MyObject> >::getSingleton + 0x28 bytes
d:\qxorm\include\qxdao\qxsqlquerybuilder.h (252): myprogram.exe!qx::QxSqlQueryBuilder<boost::shared_ptr<MyObject> >::init + 0x5 bytes
0x5C6393D9 (File and line number not available): QxOrmd.dll!qx::QxSqlQuery::groupBy + 0x6A64E bytes
d:\qxorm\inl\qxdao\qxdao_helper_container.inl (61): myprogram.exe!qx::dao::detail::QxDao_Helper_Container<std::vector<boost::shared_ptr<MyObject>,std::allocator<boost::shared_ptr<MyObject> > > >::QxDao_Helper_Container<std::vector<boost::shared_ptr<MyObject>,std::allocator<boost::shared_ptr<MyObject> > > > + 0x50 bytes
d:\qxorm\inl\qxdao\qxdao_fetchall.inl (57): myprogram.exe!qx::dao::detail::QxDao_FetchAll_Container<std::vector<boost::shared_ptr<MyObject>,std::allocator<boost::shared_ptr<MyObject> > > >::fetchAll + 0x32 bytes
d:\qxorm\inl\qxdao\qxdao_fetchall.inl (111): myprogram.exe!qx::dao::detail::QxDao_FetchAll<std::vector<boost::shared_ptr<MyObject>,std::allocator<boost::shared_ptr<MyObject> > > >::fetchAll + 0x19 bytes
d:\qxorm\include\qxdao\qxdao.h (703): myprogram.exe!qx::dao::fetch_by_query<std::vector<boost::shared_ptr<MyObject>,std::allocator<boost::shared_ptr<MyObject> > > > + 0x5B Bytes
The Program itself runs normal. I user QxOrm in Version 1.2.2. Boost Version 1.48 and Qt 4.8!!