Problem with stl vector and QObject

Discussion in 'C' started by ironexmaiden, Jul 30, 2009.

  1. ironexmaiden

    ironexmaiden New Member

    Joined:
    Jul 30, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice