Home > database >  How can we recover abnormal shutdown
How can we recover abnormal shutdown

Time:09-17

With mle plug-in input text, closed, pb is abnormal, or computer crashed, all in all is all sorts of reasons lead to pb closed,
The next time on how to show in the mle plug-in off input before the words,

CodePudding user response:

If let me do what I could be the following ideas

Define a list: UID, MLETEXT, FLAG (0, 1), the TIME

A imitation of OFFICE automatic save function, MLE loads, define the FLAG is 1, the TIMER event, store MLE content on A regular basis to the table, if normally closed, modify the FLAG value is 0, emptying the contents, if abnormal shut off the power, for example, the next loads, FLAG still is 1, and the content is not empty, then ask: there are unsaved content, whether or not to load?
Click remove MLETEXT, FLAG set to 0, empty MLETEXT,
No, FLAG set to 0, MLETEXT empty (remind only once),

B ITEMCHANGE events, real-time record MLE content, loss when error is small, but the consumption of resources,

CodePudding user response:

How to determine the normal and abnormal closed closed?

CodePudding user response:

The value of the FLAG initialization time, set this value to 1

Normally closed, the FLAG from 1 set to 0

So you can't reset when abnormal shutdown this value, this value is still in the DB for 1

Next time to enter,

If this value is 0 exit last time properly, to modify the value is 1, and continue to

If this value is 1, can explain the last close is abnormal, the save the content of the MLE, ask whether you need to restore to the MLE,

CodePudding user response:

refer to the original poster qq253276437 response:
with mle plug-in input text, closed, pb is abnormal, or computer crashed, all in all is all sorts of reasons cause the pb closed,
Next time on how to show in the mle plug-in off before the input text,


In mle controls editchanged write code (if not editchanged can customize the message for pbm_enchanged)

Then the real time can be saved to a file

CodePudding user response:

If use timer can also be, but there is a problem, is a time difference, may be lost some content

Use editchanged there will be no this problem
  • Related