1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Problem with stl vector and QObject

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

  1. ironexmaiden

    ironexmaiden New Member

    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)

    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