Sign in to follow this  
Jedite

Visual Studio .NET and Win2k problem

Recommended Posts

I am not entierly sure whats going on, but im guessing its that i am running the program im writting under win2k, but thats a far fetched assumption so I am gona ask see if anyone knows a solution for the problem im having.. My code compiles, runs great up until the moment it is exiting the program. once it hits return on main it has an Access violation right here.
~_Fac_node()
		{	// destroy a facet
		_DELETE_CRT(_Facptr->_Decref());
		}

thats in the local0.cpp I have no clue whats causing this. If anyone can help me out id appreciate it. [/source]

Share this post


Link to post
Share on other sites
I'm not sure what _DELETE_CRT does, but I assume its a macro for deallocating memory?
It sounds to me like you're trying to deallocate a dangling pointer, which NT based versions of windows (NT/2000/XP) will have none of. If it's this the error being given should be a General Protection Fault. It's probally caused by either the memory being deallocted elsewhere, or by it not being allocated at all in the first place.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this