Home > Back-end >  Use the vector error
Use the vector error

Time:10-02

Expression: vector iterator not incrementable
I use the vector pointer, the pointer assignment to each other, this problem when free memory is
VectorThe Debug an Assertion Failed!

Program: C: \ WINDOWS \ SYSTEM32 \ MSVCP120D DLL
File: c: \ program files \ Microsoft visual studio 12.0 (x86), vc, include, the vector
The Line: 101

Expression: vector iterator not incrementable

For information on how your program can cause an an assertion
Failure, see the Visual c + + documentation on asserts.

(Press Retry to debug the application)
Thread 0 x19c4 have withdrawn, the return value is 3 (0 x3),
Program "[6304] Plane. Exe" have withdrawn, the return value is 3 (0 x3),

CodePudding user response:

Some of the key code and see it,,,

CodePudding user response:

Don't save naked pointer, should from instead

CodePudding user response:

Pointer must control the release order, the release of 2 times to have the question!

CodePudding user response:

Very convenient use STD: : auto_ptr intelligence
  • Related