Original Post
hi this is y first post on GameDev, but u guys have helped me out alot b4;) neways, im havin a problem with the vector container class... my "game" was working fine, and had no problem with this vector, then, after i had fixed up my physics a bit (made no change to the vector code or even the Force code), all of a sudden it crashes... heres the code...i cant see a problem, i use vectors all the time. the program is in DirectDraw(lol), it crashes once i call the function containing this code... for (vector::iterator It = Forces.begin(); It != Forces.end(); It++) { if((*It)->LifeSpan <= (*It)->Dur) { UpForce += (*It)->UpForce; RightForce += (*It)->RightForce; } (*It)->LifeSpan += TimeDiff; } The vector is empty when i am first calling it, but i tried adding a Force in, which changed nothing... i know for sure that the program crashes when it runs the code between the () of the 'for', cause i put a MessageBox within the {} and it doesnt show up... can you help?