when i run my code i get one, and i can't tell which part of my code is faulty as VC++ points me to this code from <xlocale>

_CRTIMP2_PURE facet *__CLR_OR_THIS_CALL _Decref()
			{	// safely decrement the reference count, return this when dead
			_BEGIN_LOCK(_LOCK_LOCALE)
				if (0 < _Refs && _Refs < (size_t)(-1))
					--_Refs;
				return (_Refs == 0 ? this : 0);
			_END_LOCK()
			}

if anyone could help me to find the source of the problem it would be appreciated (:

i can post my code if you want me to

Can you please tell us what kind of exception you're getting? I don't believe xlocale is your own code. It will probably be called during some kind of string manipulation or formatting.

Can you post your code? If it's more than 50 lines, please attach as files.

i can't tell which part of my code is faulty as VC++ points me to this code from <xlocale>

At that point, open the Call Stack window (Debug / Windows / Call Stack) - likely you'll be able to step into your own code to see the offending line.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.