Skip to main content
gamedev.net
🔒 Locked

problems with std::vector

Started by msiren 0 replies 550+ views
Original Post
msiren
msiren
I just ran into this little problem with vector. I''m using vs6.0 and stlport 4.5.3 and I have vector which contains my mesh data. There is about 4955 items in the list and when I clear the list in debug mode the program hangs, but works fine in release mode. Have anyone encountered same kind of problems? Could it be because there are so many items in the vector list? I''ve tried to clear the list using for loop accessing the elements with [] and also using iterators, but nothing seems to work except compiling in release mode =) The strange part is that in my friends code using vc++''s stl the data is delete normally and I think his objects contains more data than mine and they are loaded from same file. (hopefully somebody understands what I''m trying to say here because I dont.. just need to get some sleep mm.. yes sleep)
MacPro 2.66 GHz QuadCore, OS X 10.5, 5GB, Radeon x1900 and no more gray hair.http://www.spexlab.org
Zipster
Zipster
It could the objects not deallocating right. Release mode may simply not report the problem.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.