473,327 Members | 2,112 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,327 software developers and data experts.

Re-instantiation of an application

I'm hoping someone can provide me with an idea how to approach this problem I
have. I am writing a test utility that runs multiple tests. While looping
through and executing each test it is possible that one of the conditions
requires the system to reboot. I want to be able to pick up my tests at the
point just after the reboot was requested.

I have successfully saved and restored all form control data, but have one
difficulty. The tests are executed within a method having a double loop.
The outer loop executes a "group" of tests. The inner loop executes each
member of that group of tests. How can I save off the status of this double
loop so that I can pick up right were I left off?

--
Steve
Nov 17 '05 #1
2 1114

You need to hold the current stage of the application in some persistent
form. Either storing something to disk, or writing to a database etc, so
that when the machine comes back up and your application starts, the first
thing it does is to read a "marker" file of some sort to decide where it
needs to start from.

The simplest way, thinking this through briefly, would be (worling
backwards) to have a file that you check for when the application loads. If
it exists, then read the data in. This data would contain a marker point
that you could then use to decide where your application needs to run
(continue) from. Now at each point of execution where there is a reboot
aftter an event, the last stage before a reboot is to create this file and
insert your marker. This concept should be fairly trivial to implement, and
should be extensible to your situation of nested loops etc...

Hope that helps.

Daniel.

"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I'm hoping someone can provide me with an idea how to approach this
problem I
have. I am writing a test utility that runs multiple tests. While
looping
through and executing each test it is possible that one of the conditions
requires the system to reboot. I want to be able to pick up my tests at
the
point just after the reboot was requested.

I have successfully saved and restored all form control data, but have one
difficulty. The tests are executed within a method having a double loop.
The outer loop executes a "group" of tests. The inner loop executes each
member of that group of tests. How can I save off the status of this
double
loop so that I can pick up right were I left off?

--
Steve

Nov 17 '05 #2
Your suggestion is a good one. I will implement something like this that
saves the current state of my application to disk. Using the serializable
features may be the right answer in this case. Thank you for the response.
Your comments validate some thoughts I'd had over the night.

"Dan Bass" wrote:

You need to hold the current stage of the application in some persistent
form. Either storing something to disk, or writing to a database etc, so
that when the machine comes back up and your application starts, the first
thing it does is to read a "marker" file of some sort to decide where it
needs to start from.

The simplest way, thinking this through briefly, would be (worling
backwards) to have a file that you check for when the application loads. If
it exists, then read the data in. This data would contain a marker point
that you could then use to decide where your application needs to run
(continue) from. Now at each point of execution where there is a reboot
aftter an event, the last stage before a reboot is to create this file and
insert your marker. This concept should be fairly trivial to implement, and
should be extensible to your situation of nested loops etc...

Hope that helps.

Daniel.

"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I'm hoping someone can provide me with an idea how to approach this
problem I
have. I am writing a test utility that runs multiple tests. While
looping
through and executing each test it is possible that one of the conditions
requires the system to reboot. I want to be able to pick up my tests at
the
point just after the reboot was requested.

I have successfully saved and restored all form control data, but have one
difficulty. The tests are executed within a method having a double loop.
The outer loop executes a "group" of tests. The inner loop executes each
member of that group of tests. How can I save off the status of this
double
loop so that I can pick up right were I left off?

--
Steve


Nov 17 '05 #3

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

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
3
by: presspley | last post by:
I have bought the book on advanced dreamweaver and PHP recently. I have installed MySQL and PHP server but am getting an error on the $GET statement show below. It says there is a problem with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.