Sign in to follow this  

Ctrl+Alt+Del - App dies

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I'm developing a little game. But today I saw that it dies with an Access violation when Ctrl+Alt+Del was pressed. Does someone know what the problem might be or where I have to search for the error? Thank you :)

Share this post


Link to post
Share on other sites
Application Destroying.
Maybe, you can check that you're not closing something twice (e.g. a window. maybe DestroyWindow() was called twice automatically) or maybe you're not using something like SAFE_RELEASE.
(in case you're not using it, it goes like this:
#define SAFE_RELEASE(x) if (x) delete x; x=0;.
'delete x' is the release of x. if x is a class and not a pointer, then it should be x->Release(); delete x; or something like that.)
I think it can be in some destructor.

Share this post


Link to post
Share on other sites
Did you try running the app in the debugger - maybe that gives you
the place where it crashes..

If you use ms-vc and for some reason it doesn't crash in debug, try
building a release version with debug info (try line-info only) and
see if it crashes

And you can always try to run the exe from outside the debugger
and when it crashes either 'attach debugger to process' or debug
the crashes process (usually a dlg-box pops up).

Share this post


Link to post
Share on other sites
Hi!

Well. I don't think that I delete something more than one time, because I don't delete ANYTHING by just pressing CTRL+ALT+DEL. I first thought that OpenGL might get problems with it. But then someone would know that problem here.

I guess I'll really have to debug it.

[Edit]
I just debugged it. It was really a stupid bug. I called a virtual function with a NULL value. I didn't checked if it is NULL.

Sorry for my too fast posted thread without checking it before >.<

Share this post


Link to post
Share on other sites
Seems to me that your app is accessing something that is either destroyed when there is lost focus, or that it is trying to access something invalid (such as NULL) Step one could be to check if your app is in focus or not and not do anything until it is in focus.

Share this post


Link to post
Share on other sites

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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