473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

AutoSave Crash Recovery

I want to create an autosave and crash recovery module for my program. I
imagine I would have to use a timer control on the form to call the autosave
functionality but I need a starting point. I would like it similiar to the
functionality in word when a PC goes offline (power failure, etc) it will
ask to recover open files, I would like to have this same functionality.
Does anyone have any suggestions or point me in the right direction? Thanks.

John
Apr 3 '07 #1
3 2294
On Apr 3, 11:01 am, "John Wright" <riley_wrig...@hotmail.comwrote:
I want to create an autosave and crash recovery module for my program. I
imagine I would have to use a timer control on the form to call the autosave
functionality but I need a starting point. I would like it similiar to the
functionality in word when a PC goes offline (power failure, etc) it will
ask to recover open files, I would like to have this same functionality.
Does anyone have any suggestions or point me in the right direction? Thanks.

John
What kind of application is this? How much "stuff" needs to be saved?
Do you have a save/open file system currently in place?

Thanks,

Seth Rowe

Apr 3 '07 #2
Most of the data is in textboxes on the form. Well under 100K. There is a
save in place but the user must click the save button to initiate this
action and it will post it back to the database. I want to save it locally
until they have clicked the save button then clear out the temp file for the
next record. This will not happen at a quick interval, I just need
something to help in case of power failure.
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
On Apr 3, 11:01 am, "John Wright" <riley_wrig...@hotmail.comwrote:
>I want to create an autosave and crash recovery module for my program. I
imagine I would have to use a timer control on the form to call the
autosave
functionality but I need a starting point. I would like it similiar to
the
functionality in word when a PC goes offline (power failure, etc) it will
ask to recover open files, I would like to have this same functionality.
Does anyone have any suggestions or point me in the right direction?
Thanks.

John

What kind of application is this? How much "stuff" needs to be saved?
Do you have a save/open file system currently in place?

Thanks,

Seth Rowe

Apr 4 '07 #3
On Apr 4, 4:12 pm, "John Wright" <riley_wrig...@hotmail.comwrote:
Most of the data is in textboxes on the form. Well under 100K. There is a
save in place but the user must click the save button to initiate this
action and it will post it back to the database. I want to save it locally
until they have clicked the save button then clear out the temp file for the
next record. This will not happen at a quick interval, I just need
something to help in case of power failure."rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11*********************@d57g2000hsg.googlegro ups.com...
On Apr 3, 11:01 am, "John Wright" <riley_wrig...@hotmail.comwrote:
I want to create an autosave and crash recovery module for my program. I
imagine I would have to use a timer control on the form to call the
autosave
functionality but I need a starting point. I would like it similiar to
the
functionality in word when a PC goes offline (power failure, etc) it will
ask to recover open files, I would like to have this same functionality.
Does anyone have any suggestions or point me in the right direction?
Thanks.
John
What kind of application is this? How much "stuff" needs to be saved?
Do you have a save/open file system currently in place?
Thanks,
Seth Rowe
Since you probably don't want to use the database as a "temp" file, my
vote would be to use an XML file to store the information. Then, say
every 5 minutes, your application would dump the information into this
Xml file, and when the user exit the application normally (ie not a
power failure) then delete the Xml file. That way you can do a quick
check for the presence of this temporary Xml file on startup and if
the file exists you prompt the user if he/she would like to load it.

I hope I made sense, as it is earlier in the morning! If I didn't, or
you would like a code sample of this, let me know!

Thanks,

Seth Rowe

Apr 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Burkhard Schultheis | last post by:
As I wrote last week, we have a problem with a DB2 V8 on Linux. Here is what is in db2diag.log during online backup: Starting a full database backup. 2004-04-01-02.33.54.760164 ...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
0
by: richardshen | last post by:
Any suggestion about this? DB2 V8.1.5 WorkGroup Edition on Windows Professional 2000. Thanks. Message in DB2Diag.log 2004-07-18-16.54.29.479000 Instance:DB2 Node:000...
5
by: NG | last post by:
Hi, We are having DB2-V7.2 DB on AIX 5.2 machine. Recently we upgraded our system to fixpack 13 and activated activate AIX asynchronous IO function. Our DB is going to crash recovery with...
14
by: Jurgen Haan | last post by:
Hey all, at the company where I work we had a strange situation yesterday. Our DB2 database locked up, or as it later seemed, the DBM, or some connection manager. We couldn't open new...
1
by: Michel Esber | last post by:
Hello, Linux V8 FP12 with a 64 bit instance. My DBA called me and said our instance crashed and recovery would never end. $ db2 list utilities show detail ID ...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
2
by: Racerx | last post by:
Hi All : I use db2 8.1 fixpack 3 on AIX. I recieved the following message in the diaglog ====================================================== ADM7513W Database manager has started. ...
3
by: subhbhav | last post by:
Hi, Is there any way to get a db2 9.1 Windows UDB database which is in inconsistent state to start without recovery? We were loading data from a source and the database crashed. The Server...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.