Jump to content

"Critical Termination" autoexit


Recommended Posts

I couldn't think of another title besides "critical termination". I have an autoexit feature set up in my app to save some important data upon exiting. However, sometimes apps fail and they terminate unexpectedly; in a case like that, is there a way to still do some type of save function upon termination....or am I relegated to making some kind of autosaving feature for every 5min or something?

Can I detect that unexpected/critical termination/shut down?

Link to comment
Share on other sites

I couldn't think of another title besides "critical termination". I have an autoexit feature set up in my app to save some important data upon exiting. However, sometimes apps fail and they terminate unexpectedly; in a case like that, is there a way to still do some type of save function upon termination....or am I relegated to making some kind of autosaving feature for every 5min or something?

Can I detect that unexpected/critical termination/shut down?

once an app crashes, saving your progress is going to be difficult.

maybe you can have a second app watching the first, and reading information from the main one and keeping it as a variable.

this function doesn't really relate, but i see slight similarity.

_WinAPI_FatalAppExit

you could always just save the information very often, so if a crash happens, the information will be iniwritten of filewritten previous to crash.

Link to comment
Share on other sites

@Champak: Autosave is a great feature!

@Tomb616: I'll trade you avatars...

Here are the terms I am offering:

1) Your avatar is to become my property, and mine your property.

2) Neither party can use their old avatar ever again - nor even any variation of the theme in only your particular case.

:D

Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
Share on other sites

@Champak: Autosave feature - good idea !

@Tomb616: I'll trade you avatars!

Here are the terms I am offering:

1) Your avatar is to become my property, and mine your property.

2) Neither party can use their old avatar ever again - nor even any variation of the theme in only your particular case.

i knew you loved my avatar. :D

hmm those are pretty amazing terms.

but i don't like your current avatar.

if you get a nice one i like, we can make a trade of them.

i mean your name is squirrely and its a squirrel, the similarity is apparent.

Link to comment
Share on other sites

I have a sneakin' suspicion you are on to my real ageda.

Okay then, same offer again, but this time I must heap praise on you in a new thread devoted to the topic of your virtue.

Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...