 
 
 
 
 
 
Re: Re: Automatic restart
- To: mathgroup at smc.vnet.net
- Subject: [mg33711] Re: Re: Automatic restart
- From: Vladimir Bondarenko <vvb at mail.strace.net>
- Date: Mon, 8 Apr 2002 03:04:48 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Wow, you wrote the answer! ;-) Thanks a lot for your reply. I found it
by chance because my original idea was the site would notify me
automatically when any answer to my question would come (by the way,
how could I do it? )
JPK> you can't because the program that should restart is just crashed.
Yes, you are right.
Asking:
VB>> How can I restart the module AUTOMATICALLY after the event like the described?
I meant: (possibly using another piece of software) what is the
simplest way to make working (under Windows!) something like the
following:
Step 1  Check every TimeUnit whether the MathKernel is still Working.
Step 2  If TRUE THEN produce no action ELSE
           start the MathKernel;
           calculate the module MyModule.m
        fi
To tell the truth, I got sick and tired to jump out of bed at midnights
and restart the MathKernel, so *any* including half- and quarted-baked
ideas are highly appreciated.
        
Thank you again for you comments. 'pon my word, from now on I will check
http://library.wolfram.com/mathgroup/archive every 5 minutes ;-)
Best regards,
Vladimir Bondarenko
JPK> Hi,
JPK> you can't because the program that should restart is just
JPK> crashed. The only instance that can do this is your operating
JPK> system, because it is not crashed (hopefully).
JPK> Regards
JPK>   Jens
Vladimir Bondarenko wrote:
> 
> I wrote a module, and start it from within a notebook
> via <<MyModule.m
> 
> The module works, and shows what I ask it to show.
> However, after every 4-5 hours, it computes
> something like
> 
> Integrate[ArcSin[z - 1/2] ArcSin[z + 1/2], {z, -1, 1}]
> 
> after which a message is shown like the following:
> 
>       MathKernel: This program has performed an illegal
>       operation and will be shut down
> 
>       MATHKERNEL caused an invalid page fault in
>       module MATHDLL.DLL at 015f:64511425.
>       Registers:
>       EAX=00000001 CS=015f EIP=64511425 EFLGS=00010206
>       EBX=017083c8 SS=0167 ESP=020ab95c EBP=017905dc
>       ECX=016bc32c DS=0167 ESI=00000064 FS=3d07
>       EDX=00000002 ES=0167 EDI=00000009 GS=0000
>       Bytes at CS:EIP:
>       8b 06 40 25 0f 00 00 80 79 05 48 83 c8 f0 40 89
>       Stack dump:
>       00157fb7 64008a91 00000064 0000003d 020ab9dc 00158004 017905dc 64008b72
>       017083c8 00157fb7 020ab9dc 00000002 00158004 00000001 6400854b 020ab9dc
> 
> I can restart the module by entering again <<MyModule.m  but it is inconvenient
> because I want that the module worked around the clock.
> 
> How can I restart the module AUTOMATICALLY after the event like the described?
> 
> Vladimir Bondarenko

