Results 1 to 7 of 7

Thread: A segmentation error when I get size of the std::vector

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    232
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Platforms
    Windows Android

    Default A segmentation error when I get size of the std::vector

    Hello!

    I have a segmentation error on the this string: size_t size = meshes.size();

    Qt Code:
    1. void meshLoader::draw(unsigned int programId)
    2. {
    3. size_t size = meshes.size();
    4.  
    5. for( unsigned int i = 0;i < meshes.size(); ++i )
    6. meshes[i].draw( programId );
    7. }
    To copy to clipboard, switch view to plain text mode 

    Please, run my application if you use Assimp. Or just see code
    Attached Files Attached Files
    Last edited by 8Observer8; 3rd December 2014 at 17:05.

Similar Threads

  1. Segmentation error! Please help!!!
    By phapha in forum Newbie
    Replies: 4
    Last Post: 26th October 2011, 17:01
  2. Segmentation error in run
    By kurrachow in forum Newbie
    Replies: 1
    Last Post: 21st April 2011, 13:13
  3. vector causing system error/crash
    By babygal in forum Newbie
    Replies: 9
    Last Post: 21st October 2010, 07:48
  4. vector of vector size
    By mickey in forum General Programming
    Replies: 5
    Last Post: 13th February 2007, 15:59
  5. runtime error <vector>
    By mickey in forum General Programming
    Replies: 10
    Last Post: 5th September 2006, 12:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.