Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Problem with stl vector and QObject (http://www.go4expert.com/forums/stl-vector-qobject-t18756/)

ironexmaiden 31Jul2009 00:25

Problem with stl vector and QObject
 
Hi guys I am new to the community
I have a class named Database with a private field vector<Characteristic>
it seems when i call a public function of the class Database
AddCharacteristic(Characteristic charactik)
{
Characteristicks.push_back(charactik);
}


the program after some hours of debugging and search i found that
the size of the vector Characteristicks before the push_back function is
Size = 11068049939792239002
when Capacity and Max Size are
Max Size = 461168601842738790
Capacity = 3689348812380663949

I am disappointed I searched and I am still searching
but to no avail.
2 info's i run the program only in linux
and the Class Database Inherits the QObject class of Qt Library.


Thanx a lot.


All times are GMT +5.5. The time now is 02:42.