Xutility Error in visual studio 2017

Hello!

I'm currently working on a game, working with visual studio 2017.

I'm having trouble debug a function that I'm writing. It basically loads a file, and store the data that's in a file, in an array of structures and then returns it.

Here is the error I'm getting:
Exception thrown: read access violation.
_Pnext was 0xFDFDFE05.


The file xutility opens and points me to this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
		// MEMBER FUNCTIONS FOR _Container_base12
inline void _Container_base12::_Orphan_all() _NOEXCEPT
	{	// orphan all iterators
 #if _ITERATOR_DEBUG_LEVEL == 2
	if (_Myproxy != 0)
		{	// proxy allocated, drain it
		_Lockit _Lock(_LOCK_DEBUG);

		for (_Iterator_base12 **_Pnext = &_Myproxy->_Myfirstiter;
			*_Pnext != 0; *_Pnext = (*_Pnext)->_Mynextiter) /*[ERROR MARKER HERE]*/
			(*_Pnext)->_Myproxy = 0;
		_Myproxy->_Myfirstiter = 0;
		}
 #endif /* _ITERATOR_DEBUG_LEVEL == 2 */
	}


Can any one tell me what this mean?

If you need the entire code I'll gladly post it, feel free to ask!

Thanks in advance.

Regards,

Hugo.


My bad I was using a variable as an array.
Last edited on
Looks like a problem with an invalid iterator inside some STL container.
The actual problem is somewhere in your code so it would be best if you post it all.
Topic archived. No new replies allowed.