EurekaLog newsgroups
  #1  
Old 26-Oct-2005, 07:41 PM
Brian Rasmusson
Guest
 
Posts: n/a
Default Auto-restart on Frozen?

Hi,

would it be possible to have the application restarted automatically if
EurekaLog detects that it is frozen? Or is it already?

Also, how do you detect it? I cannot seem to make EL think my app is frozen
even if I do a "while(true) {}" in my program.


Regards,
Brian


Reply With Quote
  #2  
Old 27-Oct-2005, 03:25 PM
admin
Guest
 
Posts: n/a
Default Re: Auto-restart on Frozen?

Brian Rasmusson wrote:
> Hi,
>
> would it be possible to have the application restarted automatically if
> EurekaLog detects that it is frozen? Or is it already?
>


Currently you can obtain this only using a custom ExceptionNotify event
as the following:

//------------------------------------------------------------

uses
ExceptionLog;

procedure TGUIForm.EurekaLogExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
// Check if is a frozen exception...
if (EurekaExceptionRecord.ExceptionObject is EFrozenApplication) then
ForceApplicationTermination(tbRestart); // Force the restart!
end;

//------------------------------------------------------------

>
> Also, how do you detect it? I cannot seem to make EL think my app is frozen
> even if I do a "while(true) {}" in my program.
>
>
> Regards,
> Brian


EurekaLog detects the application frozen sending an empty message to the
Main Thread messages queue.

If the application processed this messages then it isn't frozen, yes
otherwise.

So EurekaLog cannot detect the frozen application in application without
the messages queue (as ISAPI or NT Services).

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.
Reply With Quote
  #3  
Old 27-Oct-2005, 05:54 PM
Brian Rasmusson
Guest
 
Posts: n/a
Default Re: Auto-restart on Frozen?

Hi Fabio,

> Currently you can obtain this only using a custom ExceptionNotify event as
> the following:


Thank you very much, that's fine.

Brian


Reply With Quote
  #4  
Old 28-Oct-2005, 10:01 AM
admin
Guest
 
Posts: n/a
Default Re: Auto-restart on Frozen?

Hi Brian,

Brian Rasmusson wrote:
> Hi Fabio,
>
>
>>Currently you can obtain this only using a custom ExceptionNotify event as
>>the following:

>
>
> Thank you very much, that's fine.
>
> Brian


You're welcome!

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EL 6.0.23 + Delphi7 restart feature and .ELF logs DigitalScribe Bugreports 1 20-May-2010 08:12 AM
EurekaLog Viewer Suggestions -- Time Stamp and auto filtering Ken Schafer Suggestions 6 16-Feb-2009 01:58 AM
auto dialog close Andrew Ryals General 3 16-Jan-2009 07:33 PM
version info on auto-generated email subject relocation Suggestions 3 16-Jan-2009 04:22 PM
Frozen Threads / Callstack andi General 7 28-Sep-2007 04:44 PM

All times are GMT. The time now is 07:54 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824